Skip to content

Conversation

@vpellan
Copy link
Contributor

@vpellan vpellan commented Apr 29, 2025

What does this PR do?

This PR adds baggage to karafka list of propagation styles.

Motivation:

There's a lot of telemetry spam about the tracer trying to call inject! on nil. One of the reason this happens is that we don't have baggage in karafka list of propagation style. When mapping the list of default propagation style, it maps the baggage one to nil, which causes the tracer to call inject! on nil later on.

Change log entry

Yes. Fix Karafka logger and telemetry spam caused by distributed tracing.

Additional Notes:

How to test the change?

CI.

@vpellan vpellan requested a review from a team as a code owner April 29, 2025 16:46
@github-actions github-actions bot added integrations Involves tracing integrations tracing labels Apr 29, 2025
@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.76%. Comparing base (56a587c) to head (ef4dd71).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4614   +/-   ##
=======================================
  Coverage   97.76%   97.76%           
=======================================
  Files        1415     1417    +2     
  Lines       86264    86316   +52     
  Branches     4348     4348           
=======================================
+ Hits        84339    84390   +51     
- Misses       1925     1926    +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@datadog-datadog-prod-us1
Copy link
Contributor

datadog-datadog-prod-us1 bot commented Apr 29, 2025

Datadog Report

Branch report: vpellan/add-baggage-to-karafka-propagation-style
Commit report: ef4dd71
Test service: dd-trace-rb

✅ 0 Failed, 21261 Passed, 1373 Skipped, 3m 40.27s Total Time

@pr-commenter
Copy link

pr-commenter bot commented Apr 29, 2025

Benchmarks

Benchmark execution time: 2025-05-02 09:54:56

Comparing candidate commit ef4dd71 in PR branch vpellan/add-baggage-to-karafka-propagation-style with baseline commit 56a587c in branch master.

Found 1 performance improvements and 0 performance regressions! Performance is the same for 30 metrics, 2 unstable metrics.

scenario:tracing - Tracing.log_correlation

  • 🟩 throughput [+10092.330op/s; +10406.209op/s] or [+10.040%; +10.352%]

@vpellan vpellan merged commit f352621 into master May 2, 2025
442 checks passed
@vpellan vpellan deleted the vpellan/add-baggage-to-karafka-propagation-style branch May 2, 2025 10:03
@github-actions github-actions bot added this to the 2.16.0 milestone May 2, 2025
p-datadog pushed a commit to p-datadog/dd-trace-rb that referenced this pull request May 5, 2025
* telemetry-integration-test: (21 commits)
  fix test cleanup
  fix test setup
  try a non-zero timeout?
  fix integration test
  Update spec/datadog/core/telemetry/integration/telemetry_spec.rb
  fix other test
  fix flushing
  flush telemetry events
  fix test
  provide a block
  rubocop
  rubocop
  di add content-type assertion
  wait for thread to end
  telemetry integration test
  do not initialize components from on fork handler
  Emtpy string
  Bump the gh-actions-packages group across 2 directories with 4 updates
  [APMAPI-1258] Adjust trace sampling formula (DataDog#4616)
  Add baggage to karafka list of propagation styles (DataDog#4614)
  ...
@Strech Strech mentioned this pull request May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrations Involves tracing integrations tracing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants