open-telemetry / opamp-go

OpAMP protocol implementation in Go
Apache License 2.0
146 stars 71 forks source link

Add HeaderFunc to allow modifying headers before every request #298

Closed BinaryFissionGames closed 1 month ago

BinaryFissionGames commented 1 month ago

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

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

andykellr commented 1 month ago

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