generated from honeycombio/.github
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Sanitise headers to OTel semconv and add as separate fields/att…
…ributes (#296) ## Which problem is this PR solving? The OTel semantic conventions for headers is to lowercase and replace `-` with `_` and for each header to be a separate field/attribute. The logic to do the sanitisation was added in #290 for just the OTel handler. This PR moves it to a utility func that both the OTel and libhoney handlers can use. ## Short description of the changes - Move sanitisation logic to shared utility func - Use new func in both otel and libhoney handlers - Update both handler tests - Add `-count=1` to test command to clear cache on test runs ## How to verify that this has the expected result Both libhoney and OTel handlers sanitise headers and add each header as a separate field / attribute. --------- Co-authored-by: JamieDanielson <jamieedanielson@gmail.com>
- Loading branch information
1 parent
34d90a5
commit d8d1fa5
Showing
6 changed files
with
95 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters