Skip to content

Add HeaderFunc to allow modifying headers before every request#298

Merged
tigrannajaryan merged 2 commits into
open-telemetry:mainfrom
observIQ:feat/headers-func
Sep 12, 2024
Merged

Add HeaderFunc to allow modifying headers before every request#298
tigrannajaryan merged 2 commits into
open-telemetry:mainfrom
observIQ:feat/headers-func

Conversation

@BinaryFissionGames

Copy link
Copy Markdown
Contributor

Adds a new HeaderFunc to the StartSettings that allows for dynamically editing the headers before each HTTP request made by the OpAMP library.

Closes #297

@BinaryFissionGames
BinaryFissionGames requested a review from a team September 6, 2024 15:39
@codecov

codecov Bot commented Sep 6, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.79%. Comparing base (7cdd395) to head (c35a53d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
+ Coverage   77.61%   77.79%   +0.17%     
==========================================
  Files          25       25              
  Lines        1729     1743      +14     
==========================================
+ Hits         1342     1356      +14     
  Misses        283      283              
  Partials      104      104              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andykellr andykellr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andykellr

Copy link
Copy Markdown
Contributor

@tigrannajaryan Please have a look and merge if you approve.

@tigrannajaryan tigrannajaryan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one small comment.

Comment thread client/types/startsettings.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support dynamically generating headers for each client request

3 participants