-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not override span_id with otel value by default
This is done to prevent breaking of behavior for people that have both set and already rely for regular span_id to be logged to DD.
- Loading branch information
1 parent
314b173
commit cc8d932
Showing
2 changed files
with
27 additions
and
8 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
@btkostner I made a small change here: we should use a list instead of a map. With a map, we won't be able to control key priorities (so there would be no way to ensure
otel
fields do not override regular ones). This is to ensure that there are no breaking changes for people that use it currently and do not expectotel_span_id
to overridespan_id
, etc.I pushed a new release and please tell me if this behavior doesn't work for you - we can expose priorities as a configuration.