Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DD_TRACE_PROPAGATION_STYLE option #2466

Merged
merged 1 commit into from
Dec 6, 2022
Merged

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Dec 6, 2022

This PR as a new propagation style configuration: DD_TRACE_PROPAGATION_STYLE.

This setting sets the value of both tracing.distributed_tracing.propagation_extract_style & tracing.distributed_tracing.propagation_inject_style to the provided value. This is meant to ease custom configuration where both injection and extraction have the same format, which is common.

The existing options DD_TRACE_PROPAGATION_STYLE_EXTRACT & DD_TRACE_PROPAGATION_STYLE_INJECT have higher priority than the newly introduced DD_TRACE_PROPAGATION_STYLE, allowing clients be more specific when needed without changing the general DD_TRACE_PROPAGATION_STYLE setting.

@marcotc marcotc requested a review from a team December 6, 2022 00:44
@marcotc marcotc self-assigned this Dec 6, 2022
ENV_PROPAGATION_STYLE_EXTRACT = 'DD_TRACE_PROPAGATION_STYLE'.freeze
ENV_PROPAGATION_STYLE = 'DD_TRACE_PROPAGATION_STYLE'.freeze
Copy link
Member Author

Choose a reason for hiding this comment

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

I introduced this constant recently (a change still not released), but copy/pasted the constant name. This fixes that.

@codecov-commenter
Copy link

Codecov Report

Merging #2466 (f8f9a41) into master (91cc56a) will increase coverage by 0.02%.
The diff coverage is 98.98%.

@@            Coverage Diff             @@
##           master    #2466      +/-   ##
==========================================
+ Coverage   98.01%   98.03%   +0.02%     
==========================================
  Files        1105     1111       +6     
  Lines       59276    59835     +559     
==========================================
+ Hits        58100    58662     +562     
+ Misses       1176     1173       -3     
Impacted Files Coverage Δ
lib/datadog/core/configuration/ext.rb 100.00% <ø> (ø)
lib/datadog/core/utils.rb 100.00% <ø> (+2.27%) ⬆️
spec/datadog/core/chunker_spec.rb 92.59% <ø> (-0.27%) ⬇️
spec/datadog/core/configuration/settings_spec.rb 100.00% <ø> (ø)
spec/datadog/core/encoding_spec.rb 100.00% <ø> (ø)
spec/datadog/core/utils_spec.rb 98.27% <ø> (-0.36%) ⬇️
spec/support/container_helpers.rb 100.00% <ø> (+0.44%) ⬆️
spec/support/synchronization_helpers.rb 88.23% <ø> (+6.65%) ⬆️
spec/support/core_helpers.rb 85.00% <85.00%> (ø)
lib/datadog/tracing/utils.rb 93.75% <93.75%> (ø)
... and 41 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marcotc marcotc merged commit f27e708 into master Dec 6, 2022
@marcotc marcotc deleted the new-propagation-configuration branch December 6, 2022 18:54
@github-actions github-actions bot added this to the 1.8.0 milestone Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants