dd-trace-rb icon indicating copy to clipboard operation
dd-trace-rb copied to clipboard

Doc: Updated GraphQL settings that only work through env var

Open marcotc opened this issue 5 months ago • 2 comments

What does this PR do?

Related issue comment: https://github.com/DataDog/dd-trace-rb/issues/4170#issuecomment-3074067411

This PR updates the documentation on how to configure the GraphQL tracing mechanism, since it cannot be changed once first configuration today (the patching is irreversible).

Because auto-instrumentation always patches GraphQL if available at application startup, trying to change the mechanism in the Datadog.configure block does not work.

This PR leaves only the environment variable configuration options publicly documented, since they are the only ones that always work reliably.

The ultimate fix for this patching issues is unfortunately a breaking change, thus needs to wait until the next major release.

Change log entry No.

marcotc avatar Aug 06 '25 20:08 marcotc

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 97.55%. Comparing base (e171484) to head (6b274a8).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4842      +/-   ##
==========================================
- Coverage   97.55%   97.55%   -0.01%     
==========================================
  Files        1490     1490              
  Lines       89156    89155       -1     
  Branches     4713     4713              
==========================================
- Hits        86978    86973       -5     
- Misses       2178     2182       +4     

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

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

codecov[bot] avatar Aug 06 '25 20:08 codecov[bot]

Hey, should we go ahead and merge this one?

ivoanjo avatar Nov 27 '25 09:11 ivoanjo