Skip to content

feat: inspectable tracer#4512

Merged
darccio merged 53 commits into
mainfrom
dario.castane/rd/inspectable-tracer-v2
Jul 9, 2026
Merged

feat: inspectable tracer#4512
darccio merged 53 commits into
mainfrom
dario.castane/rd/inspectable-tracer-v2

Conversation

@darccio

@darccio darccio commented Mar 9, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Adds an inspectable tracer that replaces the other four different ways to inspect spans and mocking the tracer.

Migrates a few example tests that we using any of the different existing approaches in the codebase.

Important

  • testracer.Start starts a test tracer but it doesn't register it as global tracer.
  • testtracer.Bootstrap starts a test tracer, a test agent, and registers the former as global tracer.
  • We are not able to run our tests in parallel, although some of the migrated ones could be parallelized already because they don't depend on the public ddtrace/tracer API.

Motivation

  • Replace existing implementations, although now we keep the original APIs for them.
  • Reduce code to maintain.
  • Exercize the tracer in tests, don't mock it.
  • Reduces dependencies although they are not completely removed as they still hang as indirect.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • New code is free of linting errors. You can check this by running make lint locally.
  • New code doesn't break existing tests. You can check this by running make test locally.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • All generated files are up to date. You can check this by running make generate locally.

Unsure? Have a question? Request a review!

@darccio
darccio force-pushed the dario.castane/rd/inspectable-tracer-v2 branch from 8212d72 to 3c74aaf Compare March 9, 2026 15:03
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Mar 9, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🔄 Datadog auto-retried 1 job - 1 passed on retry View in Datadog

🎯 Code Coverage (details)
Patch Coverage: 61.96%
Overall Coverage: 62.73% (-3.50%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: e22ba01 | Docs | Datadog PR Page | Give us feedback!

@pr-commenter

pr-commenter Bot commented Mar 9, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-09 18:12:41

Comparing candidate commit 7088e49 in PR branch dario.castane/rd/inspectable-tracer-v2 with baseline commit e22ba01 in branch main.

Found 2 performance improvements and 0 performance regressions! Performance is the same for 323 metrics, 1 unstable metrics, 1 flaky benchmarks without significant changes.

Explanation

This is an A/B test comparing a candidate commit's performance against that of a baseline commit. Performance changes are noted in the tables below as:

  • 🟩 = significantly better candidate vs. baseline
  • 🟥 = significantly worse candidate vs. baseline

We compute a confidence interval (CI) over the relative difference of means between metrics from the candidate and baseline commits, considering the baseline as the reference.

If the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD), the change is considered significant.

Feel free to reach out to #apm-benchmarking-platform on Slack if you have any questions.

More details about the CI and significant changes

You can imagine this CI as a range of values that is likely to contain the true difference of means between the candidate and baseline commits.

CIs of the difference of means are often centered around 0%, because often changes are not that big:

---------------------------------(------|---^--------)-------------------------------->
                              -0.6%    0%  0.3%     +1.2%
                                 |          |        |
         lower bound of the CI --'          |        |
sample mean (center of the CI) -------------'        |
         upper bound of the CI ----------------------'

As described above, a change is considered significant if the CI is entirely outside the configured SIGNIFICANT_IMPACT_THRESHOLD (or the deprecated UNCONFIDENCE_THRESHOLD).

For instance, for an execution time metric, this confidence interval indicates a significantly worse performance:

----------------------------------------|---------|---(---------^---------)---------->
                                       0%        1%  1.3%      2.2%      3.1%
                                                  |   |         |         |
       significant impact threshold --------------'   |         |         |
                      lower bound of CI --------------'         |         |
       sample mean (center of the CI) --------------------------'         |
                      upper bound of CI ----------------------------------'

scenario:BenchmarkExtractW3C

  • 🟩 execution_time [-67.756ns; -49.044ns] or [-2.887%; -2.090%]

scenario:BenchmarkPayloadVersions/simple_1000spans/v1.0

  • 🟩 allocated_mem [-1 bytes; +0 bytes] or [-3.131%; -2.011%]

Known flaky benchmarks

These benchmarks are marked as flaky and will not trigger a failure. Modify FLAKY_BENCHMARKS_REGEX to control which benchmarks are marked as flaky.

Known flaky benchmarks without significant changes:

  • scenario:BenchmarkOTLPTraceWriterFlush

darccio added 4 commits March 9, 2026 16:35
…es by replacing FreePort+ListenAndServe with a pre-bound FreeListener+Serve and adding a TestCasePreBootstrap interface so os/lfi.go can configure AppSec env vars before the tracer starts
@darccio

darccio commented Mar 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 078b37add2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ddtrace/tracer/tracertest.go
Comment thread internal/orchestrion/_integration/internal/harness/harness.go
@darccio

darccio commented Mar 10, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f6465bb5f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ddtrace/tracer/tracertest.go
Comment thread ddtrace/tracer/tracertest.go Outdated
@codecov

codecov Bot commented Mar 10, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 35.79418% with 287 lines in your changes missing coverage. Please review.
✅ Project coverage is 61.20%. Comparing base (1e2f4d4) to head (b80d449).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
ddtrace/x/llmobstest/collector.go 0.00% 99 Missing ⚠️
ddtrace/x/agenttest/agent.go 0.00% 77 Missing ⚠️
ddtrace/tracer/tracertest.go 65.03% 42 Missing and 8 partials ⚠️
ddtrace/x/agenttest/span.go 0.00% 45 Missing ⚠️
ddtrace/tracer/option.go 57.89% 7 Missing and 1 partial ⚠️
internal/llmobs/llmobs.go 92.00% 3 Missing and 1 partial ⚠️
internal/llmobs/transport/transport.go 0.00% 4 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
ddtrace/tracer/tracer.go 86.85% <100.00%> (ø)
internal/llmobs/config/config.go 0.00% <ø> (ø)
internal/llmobs/llmobs.go 79.11% <92.00%> (ø)
internal/llmobs/transport/transport.go 0.00% <0.00%> (ø)
ddtrace/tracer/option.go 83.49% <57.89%> (ø)
ddtrace/x/agenttest/span.go 0.00% <0.00%> (ø)
ddtrace/tracer/tracertest.go 65.03% <65.03%> (ø)
ddtrace/x/agenttest/agent.go 0.00% <0.00%> (ø)
ddtrace/x/llmobstest/collector.go 0.00% <0.00%> (ø)

... and 434 files with indirect coverage changes

🚀 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.

@darccio
darccio removed request for a team and jchrostek-dd April 21, 2026 14:20
@darccio

darccio commented Apr 21, 2026

Copy link
Copy Markdown
Member Author

Sorry, something went horrible while merging main.

darccio and others added 13 commits April 21, 2026 16:24
SpanMeta is now a struct (not map[string]string) so len() and range
no longer compile. Use maps.Clone(span.meta.Map(true)) for a safe
owned copy, Count() for sizing Tags, and iterate the cloned map.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
The three broken tests were written against a planned `testtracer` package
(WithMockResponses, WithTracerStartOpts, WaitForLLMObsSpans) that does not
exist yet, causing build failures across all packages that import the tracer.

Fixes:
- Add SpanBatchSizes() to llmobstest.Collector to expose raw HTTP body sizes
  for each span batch, recorded in handleSpans alongside span collection.
- Rewrite TestSpanEventsSizeBasedFlushing (llmobs_test.go): use existing
  testTracer helper; replace testtracer.Start + tt.WaitForLLMObsSpans with
  tracer.Flush + coll.SpanCount/SpanBatchSizes assertions.
- Rewrite TestLargeDatasetPushChunking (dataset_test.go): inline tracer setup
  with tracertest.StartAgent + llmobstest.New; convert round-tripper-style
  mock (func(*Request)*Response) to http.HandlerFunc registered via
  coll.HandleFunc; fix createMockHandler()(w, r) call signature.
- Rewrite TestExperimentLargeDatasetSizeBasedFlushing (experiment_test.go):
  same pattern using tracertest.Bootstrap; LLMObs span batch sizes come from
  coll.SpanBatchSizes() instead of intercepted request bodies.
- Remove unused imports (bytes, io, sync) from llmobs_test.go and
  experiment_test.go left over from the removed mock closures.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…size

The mock handler always returned `numRecords` entries, but dataset.Push
chunks large datasets into smaller batches. Transport validates that
`len(resp.Data) == len(insert) + len(update)`, so a fixed-size response
caused a mismatch on all but the first chunk, silently aborting the push
after 3 spans instead of 12.

Parse the request body to count the actual records per chunk and echo
back exactly that many response entries.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Size-based flushes fired `l.wg.Go(batchSend)` without incrementing
`sendWg`, so `FlushSync` → `sendWg.Wait()` returned immediately even
with in-flight size-based sends. On a slow CI runner this was a reliable
race: `FlushSync` returned, the test read `SpanCount()`, and the
background goroutines hadn't yet delivered their batches to the
collector — yielding "expected 12, actual 3".

Fix: add `sendWg.Add(1)` / `defer sendWg.Done()` around size-based
flush goroutines, matching the pattern used by ticker and flushNow paths.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Add withForceAgentWriter() option that sets OTLPExportMode=false before
newTracer selects the traceWriter. Without this, OTEL_TRACES_EXPORTER=otlp
in the environment routes all test spans to the remote OTLP endpoint
instead of the in-process test agent, causing every span assertion to
fail with "collected 0 span(s)".

withAgentTransport only overrides the HTTP client; OTLP mode selects a
different writer that ignores c.httpClient entirely, so a separate
guard is needed.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
sendWg existed only to let FlushSync call sendWg.Wait() from inside the
main run loop goroutine without deadlocking on wg.Wait() (the main loop
was itself tracked by wg).

Fix the root cause: start the main loop as a plain goroutine and close
stoppedCh on exit. wg now tracks only async batchSend goroutines, so
FlushSync can call wg.Wait() directly without deadlock. Stop() waits
for the main loop via <-stoppedCh, then for remaining async sends via
wg.Wait().

Extracts sendAsync() to remove the repeated Add/Go/Done boilerplate at
each call site, making it impossible to accidentally skip tracking a
future async send.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…tusUpdates to tracertest API

Main added multi-run and status-update experiment tests using the old testtracer
round-tripper API. This branch replaced testtracer with llmobstest.Collector +
tracertest.Bootstrap. Resolve conflicts by:

- Resolving 3 conflict blocks in createMockHandler (add PATCH route for status
  updates, keep HandlerFunc style)
- Adding testTracerWithHandler helper for tests needing a custom LLMObs handler
- Adapting TestExperimentMultiRun: drop tt.Stop(), replace WaitForLLMObsSpans
  with tracer.Flush()+coll.Spans(), rewrite custom-handler subtests to use
  testTracerWithHandler
- Adapting captureStatusUpdates to return http.HandlerFunc instead of
  testtracer.MockResponseFunc
- Adapting TestExperimentStatusUpdates: replace testtracer.WithMockResponses
  pattern with testTracerWithHandler+captureStatusUpdates
- Adding Collector.Spans() to llmobstest for bulk span iteration in tag checks

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…racertest API

Replace old testtracer.WaitForSpans/WaitForLLMObsSpans calls (from main merge)
with tracer.Flush() + coll.RequireSpan() in two TestStartSpan and TestDDAttributes
subtests that were left using the removed testtracer API.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
darccio added 7 commits June 29, 2026 11:05
Resolves conflicts and the semantic-merge breakage caused by main's
new LLMObs features colliding with this branch's inspectable-tracer
test-harness migration:

- ddtrace/tracer/option.go: keep both the branch's test-helper options
  (withLLMObsInProcessTransport, withAgentTransport, withForceAgentWriter)
  and main's WithSpanPool.
- ddtrace/tracer/tracer_test.go: keep the inspectable-tracer flow
  (tracer.Flush + agent.FindSpan) using main's named-field chunk literals.
- internal/llmobs/llmobs.go: keep the branch's flushSyncCh-based FlushSync
  design (wg/stoppedCh/sendAsync), discarding main's sendWg/workerDone
  variant; preserve main's costTags/toolVersion/projectID additions.
- internal/orchestrion/_integration/go.mod: take main's dependency bumps
  (agent 0.79.0, v2.10.0-dev, etc.); reconciled via go mod tidy.
- llmobs/dataset/dataset_test.go: keep the new tracertest/llmobstest harness
  and update record mocks to main's v2 records endpoint + flat format; port
  main's pull-with-version-option test to the new harness.
- internal/llmobs/llmobs_test.go, llmobs/llmobs_test.go,
  llmobs/experiment/evaluator_result_test.go: port main's new tests
  (tool-version, cost-tags, FlushSync, evaluator-result) to the new harness.
  Dropped the FlushSync does-not-hang-after-stop subtest, which probes
  main's FlushSync internals not guaranteed by this branch's design.
- ddtrace/x/llmobstest/collector.go: add Spans() accessor and
  SetSpanResponseDelay to support the ported tests.
…ectable tracer

Extract the remote-config client build + AppSec start block from Start into
startAppSec(), then call it from both Start and startInspectableTracer. This
ensures WithAppSecEnabled and friends activate identically in both paths,
closing the gap flagged in PR #4512 review.

Telemetry, runtime metrics, and storeConfig are intentionally kept out of the
shared path: they spawn background goroutines and process-global side effects
that break the inspectable tracer's synctest/no-network guarantees.
…writers

Replace the fragile type switch (agentTraceWriter | otlpTraceWriter) in the
inspectable-tracer flush handler with a flushWaiter optional interface. All
async writers (agentTraceWriter, otlpTraceWriter, ciVisibilityTraceWriter)
implement wait() via their wg.Wait(); logTraceWriter (synchronous) does not.

This closes two gaps from the PR #4512 review: ciVisibilityTraceWriter was
missing from the switch (flush could return before async sends completed), and
the switch is fragile against future writer additions.
After Stop() exits the worker goroutine, a subsequent FlushSync() would block
forever on the unbuffered flushSyncCh send. Add a stopCh-guarded select so
FlushSync returns immediately once the instance is stopped.

Add does-not-hang-after-stop subtest to TestFlushSync (the remaining subtest
from the PR #4512 review that was not yet covered by the existing suite).
…t unit tests

Three minor fixes surfaced during code review of the inspectable-tracer PR:

- ddtrace/tracer/option.go: replace three stale references to a non-existent
  "finishConfig" function (the actual function is "newConfig") in the comments
  for agentTransport, llmobsHTTPClient, and withAgentTransport. A future reader
  searching for finishConfig would find nothing.

- ddtrace/x/agenttest/span.go: document that Span.TraceID holds only the lower
  64 bits of the trace ID for 128-bit traces; the upper 64 bits are available in
  Meta["_dd.p.tid"]. Tests asserting full 128-bit identity should use that tag.

- ddtrace/x/agenttest/agenttest_test.go (new): direct unit tests for the
  agenttest package — SpanMatch conditions and AND-semantics, FailedConditions,
  FindSpan (no match / first match / multi-condition), RequireSpan (found / not
  found), CountSpans, and HandleTraces in-process round-trip. The package had
  no test files; CONTRIBUTING targets ~90% coverage for new code.
…ectable-tracer-v2

# Conflicts:
#	ddtrace/tracer/writer.go
#	internal/orchestrion/_integration/go.mod
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Config Audit

PACKAGE: contrib/confluentinc/confluent-kafka-go/kafkatrace
  STATUS      CONFIG                            CALL_SITES
  UNMIGRATED  DD_TRACE_KAFKA_ANALYTICS_ENABLED  1

PACKAGE: ddtrace/opentelemetry/log
  STATUS      CONFIG                            CALL_SITES
  STILL_READ  DD_AGENT_HOST                     2
  STILL_READ  DD_ENV                            1
  STILL_READ  DD_SERVICE                        1
  STILL_READ  DD_TAGS                           1
  STILL_READ  DD_TRACE_AGENT_URL                2
  STILL_READ  DD_TRACE_REPORT_HOSTNAME          1
  STILL_READ  DD_VERSION                        1
  UNMIGRATED  DD_HOSTNAME                       1
  UNMIGRATED  OTEL_BLRP_EXPORT_TIMEOUT          1
  UNMIGRATED  OTEL_BLRP_MAX_EXPORT_BATCH_SIZE   1
  UNMIGRATED  OTEL_BLRP_MAX_QUEUE_SIZE          1
  UNMIGRATED  OTEL_BLRP_SCHEDULE_DELAY          1
  UNMIGRATED  OTEL_EXPORTER_OTLP_ENDPOINT       4
  UNMIGRATED  OTEL_EXPORTER_OTLP_HEADERS        2
  UNMIGRATED  OTEL_EXPORTER_OTLP_LOGS_ENDPOINT  4
  UNMIGRATED  OTEL_EXPORTER_OTLP_LOGS_HEADERS   2
  UNMIGRATED  OTEL_EXPORTER_OTLP_LOGS_PROTOCOL  2
  UNMIGRATED  OTEL_EXPORTER_OTLP_LOGS_TIMEOUT   1
  UNMIGRATED  OTEL_EXPORTER_OTLP_PROTOCOL       2
  UNMIGRATED  OTEL_EXPORTER_OTLP_TIMEOUT        1
  UNMIGRATED  OTEL_RESOURCE_ATTRIBUTES          1

PACKAGE: ddtrace/opentelemetry/metric
  STATUS      CONFIG                                             CALL_SITES
  STILL_READ  DD_AGENT_HOST                                      2
  STILL_READ  DD_ENV                                             1
  STILL_READ  DD_METRICS_OTEL_ENABLED                            1
  STILL_READ  DD_SERVICE                                         1
  STILL_READ  DD_TAGS                                            1
  STILL_READ  DD_TRACE_AGENT_URL                                 2
  STILL_READ  DD_TRACE_REPORT_HOSTNAME                           1
  STILL_READ  DD_VERSION                                         1
  STILL_READ  OTEL_METRICS_EXPORTER                              1
  UNMIGRATED  DD_HOSTNAME                                        1
  UNMIGRATED  OTEL_EXPORTER_OTLP_ENDPOINT                        2
  UNMIGRATED  OTEL_EXPORTER_OTLP_HEADERS                         1
  UNMIGRATED  OTEL_EXPORTER_OTLP_METRICS_ENDPOINT                2
  UNMIGRATED  OTEL_EXPORTER_OTLP_METRICS_HEADERS                 1
  UNMIGRATED  OTEL_EXPORTER_OTLP_METRICS_PROTOCOL                2
  UNMIGRATED  OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE  1
  UNMIGRATED  OTEL_EXPORTER_OTLP_PROTOCOL                        2
  UNMIGRATED  OTEL_EXPORTER_OTLP_TIMEOUT                         1
  UNMIGRATED  OTEL_RESOURCE_ATTRIBUTES                           1
  UNMIGRATED  OTEL_SERVICE_NAME                                  1

PACKAGE: ddtrace/tracer
  STATUS      CONFIG                                    CALL_SITES
  STILL_READ  DD_API_KEY                                1
  UNMIGRATED  DD_APM_TRACING_ENABLED                    1
  UNMIGRATED  DD_LLMOBS_AGENTLESS_ENABLED               1
  UNMIGRATED  DD_LLMOBS_ENABLED                         1
  UNMIGRATED  DD_LLMOBS_ML_APP                          1
  UNMIGRATED  DD_LLMOBS_PROJECT_NAME                    1
  UNMIGRATED  DD_TRACE_128_BIT_TRACEID_LOGGING_ENABLED  1
  UNMIGRATED  DD_TRACE_DEBUG_SEELOG_WORKAROUND          1
  UNMIGRATED  DD_TRACE_PROPAGATION_BEHAVIOR_EXTRACT     1
  UNMIGRATED  DD_TRACE_PROPAGATION_EXTRACT_FIRST        1
  UNMIGRATED  DD_TRACE_PROPAGATION_STYLE_EXTRACT        1
  UNMIGRATED  DD_TRACE_PROPAGATION_STYLE_INJECT         1
  UNMIGRATED  OTEL_TRACES_SAMPLER_ARG                   1

PACKAGE: instrumentation
  STATUS      CONFIG                                       CALL_SITES
  STILL_READ  DD_DATA_STREAMS_ENABLED                      1
  UNMIGRATED  DD_API_SECURITY_ENDPOINT_COLLECTION_ENABLED  1

PACKAGE: instrumentation/graphql
  STATUS      CONFIG                             CALL_SITES
  UNMIGRATED  DD_TRACE_GRAPHQL_ERROR_EXTENSIONS  1

PACKAGE: instrumentation/httptrace
  STATUS      CONFIG                                                 CALL_SITES
  UNMIGRATED  DD_TRACE_BAGGAGE_TAG_KEYS                              1
  UNMIGRATED  DD_TRACE_CLIENT_IP_ENABLED                             1
  UNMIGRATED  DD_TRACE_HTTP_SERVER_ERROR_STATUSES                    1
  UNMIGRATED  DD_TRACE_HTTP_URL_QUERY_STRING_ALLOWLIST               1
  UNMIGRATED  DD_TRACE_HTTP_URL_QUERY_STRING_ALLOWLIST_CLIENT        1
  UNMIGRATED  DD_TRACE_HTTP_URL_QUERY_STRING_ALLOWLIST_SERVER        1
  UNMIGRATED  DD_TRACE_HTTP_URL_QUERY_STRING_DISABLED                1
  UNMIGRATED  DD_TRACE_INFERRED_PROXY_SERVICES_ENABLED               1
  UNMIGRATED  DD_TRACE_OBFUSCATION_QUERY_STRING_REGEXP               2
  UNMIGRATED  DD_TRACE_RESOURCE_RENAMING_ALWAYS_SIMPLIFIED_ENDPOINT  1
  UNMIGRATED  DD_TRACE_RESOURCE_RENAMING_ENABLED                     1

PACKAGE: instrumentation/internal/namingschema
  STATUS      CONFIG                                             CALL_SITES
  STILL_READ  DD_SERVICE                                         1
  STILL_READ  DD_TRACE_SPAN_ATTRIBUTE_SCHEMA                     1
  UNMIGRATED  DD_TRACE_REMOVE_INTEGRATION_SERVICE_NAMES_ENABLED  1

PACKAGE: internal
  STATUS      CONFIG                         CALL_SITES
  STILL_READ  DD_AGENT_HOST                  1
  STILL_READ  DD_TAGS                        1
  STILL_READ  DD_TRACE_AGENT_PORT            1
  STILL_READ  DD_TRACE_AGENT_URL             1
  UNMIGRATED  DD_EXTERNAL_ENV                1
  UNMIGRATED  DD_GIT_COMMIT_SHA              1
  UNMIGRATED  DD_GIT_REPOSITORY_URL          1
  UNMIGRATED  DD_TRACE_GIT_METADATA_ENABLED  1

PACKAGE: internal/appsec
  STATUS      CONFIG           CALL_SITES
  UNMIGRATED  DD_APPSEC_RULES  1

PACKAGE: internal/appsec/config
  STATUS      CONFIG                                                CALL_SITES
  UNMIGRATED  DD_API_SECURITY_DOWNSTREAM_BODY_ANALYSIS_SAMPLE_RATE  1
  UNMIGRATED  DD_API_SECURITY_ENABLED                               1
  UNMIGRATED  DD_API_SECURITY_MAX_DOWNSTREAM_REQUEST_BODY_ANALYSIS  1
  UNMIGRATED  DD_API_SECURITY_PROXY_SAMPLE_RATE                     1
  UNMIGRATED  DD_API_SECURITY_REQUEST_SAMPLE_RATE                   1
  UNMIGRATED  DD_API_SECURITY_SAMPLE_DELAY                          1
  UNMIGRATED  DD_APM_TRACING_ENABLED                                1
  UNMIGRATED  DD_APPSEC_ENABLED                                     1
  UNMIGRATED  DD_APPSEC_RASP_ENABLED                                1
  UNMIGRATED  DD_APPSEC_RULES                                       1
  UNMIGRATED  DD_APPSEC_SCA_ENABLED                                 1
  UNMIGRATED  DD_APPSEC_TRACE_RATE_LIMIT                            1
  UNMIGRATED  DD_APPSEC_WAF_TIMEOUT                                 1

PACKAGE: internal/appsec/listener/httpsec
  STATUS      CONFIG                     CALL_SITES
  UNMIGRATED  DD_TRACE_CLIENT_IP_HEADER  1

PACKAGE: internal/bazel
  STATUS      CONFIG                                  CALL_SITES
  UNMIGRATED  DD_TEST_OPTIMIZATION_MANIFEST_FILE      1
  UNMIGRATED  DD_TEST_OPTIMIZATION_PAYLOADS_IN_FILES  1

PACKAGE: internal/civisibility/envconfig
  STATUS      CONFIG                   CALL_SITES
  STILL_READ  DD_CIVISIBILITY_ENABLED  1

PACKAGE: internal/civisibility/integrations
  STATUS      CONFIG                                               CALL_SITES
  STILL_READ  DD_SERVICE                                           1
  STILL_READ  DD_TRACE_DEBUG                                       1
  UNMIGRATED  DD_CIVISIBILITY_CODE_COVERAGE_REPORT_UPLOAD_ENABLED  1
  UNMIGRATED  DD_CIVISIBILITY_FLAKY_RETRY_COUNT                    1
  UNMIGRATED  DD_CIVISIBILITY_FLAKY_RETRY_ENABLED                  1
  UNMIGRATED  DD_CIVISIBILITY_GIT_UPLOAD_ENABLED                   1
  UNMIGRATED  DD_CIVISIBILITY_IMPACTED_TESTS_DETECTION_ENABLED     1
  UNMIGRATED  DD_CIVISIBILITY_SUBTEST_FEATURES_ENABLED             1
  UNMIGRATED  DD_CIVISIBILITY_TOTAL_FLAKY_RETRY_COUNT              1
  UNMIGRATED  DD_TEST_MANAGEMENT_ATTEMPT_TO_FIX_RETRIES            1
  UNMIGRATED  DD_TEST_MANAGEMENT_ENABLED                           1

PACKAGE: internal/civisibility/integrations/gotesting
  STATUS      CONFIG                                                           CALL_SITES
  UNMIGRATED  DD_CIVISIBILITY_INTERNAL_PARALLEL_EARLY_FLAKE_DETECTION_ENABLED  1
  UNMIGRATED  DD_TEST_MANAGEMENT_ENABLED                                       1

PACKAGE: internal/civisibility/integrations/logs
  STATUS      CONFIG                        CALL_SITES
  UNMIGRATED  DD_CIVISIBILITY_LOGS_ENABLED  1

PACKAGE: internal/civisibility/utils
  STATUS      CONFIG                              CALL_SITES
  STILL_READ  DD_SERVICE                          1
  UNMIGRATED  DD_ACTION_EXECUTION_ID              1
  UNMIGRATED  DD_PIPELINE_EXECUTION_ID            1
  UNMIGRATED  DD_TEST_OPTIMIZATION_ENV_DATA_FILE  1
  UNMIGRATED  DD_TEST_SESSION_NAME                1

PACKAGE: internal/civisibility/utils/net
  STATUS      CONFIG                             CALL_SITES
  STILL_READ  DD_API_KEY                         1
  STILL_READ  DD_CIVISIBILITY_AGENTLESS_ENABLED  1
  STILL_READ  DD_CIVISIBILITY_AGENTLESS_URL      1
  STILL_READ  DD_ENV                             1
  STILL_READ  DD_SERVICE                         1
  STILL_READ  DD_SITE                            1
  STILL_READ  DD_TAGS                            1
  STILL_READ  DD_VERSION                         1

PACKAGE: internal/civisibility/utils/telemetry
  STATUS      CONFIG                                         CALL_SITES
  UNMIGRATED  DD_CIVISIBILITY_AUTO_INSTRUMENTATION_PROVIDER  1

PACKAGE: internal/globalconfig
  STATUS      CONFIG                           CALL_SITES
  UNMIGRATED  DD_INSTRUMENTATION_INSTALL_ID    1
  UNMIGRATED  DD_INSTRUMENTATION_INSTALL_TIME  1
  UNMIGRATED  DD_INSTRUMENTATION_INSTALL_TYPE  1

PACKAGE: internal/hostname
  STATUS      CONFIG       CALL_SITES
  UNMIGRATED  DD_HOSTNAME  1

PACKAGE: internal/namingschema
  STATUS      CONFIG                                             CALL_SITES
  STILL_READ  DD_SERVICE                                         1
  STILL_READ  DD_TRACE_SPAN_ATTRIBUTE_SCHEMA                     1
  UNMIGRATED  DD_TRACE_REMOVE_INTEGRATION_SERVICE_NAMES_ENABLED  1

PACKAGE: internal/processtags
  STATUS      CONFIG                                          CALL_SITES
  UNMIGRATED  DD_EXPERIMENTAL_PROPAGATE_PROCESS_TAGS_ENABLED  1

PACKAGE: internal/remoteconfig
  STATUS      CONFIG                                  CALL_SITES
  STILL_READ  DD_ENV                                  1
  UNMIGRATED  DD_RC_TUF_ROOT                          1
  UNMIGRATED  DD_REMOTE_CONFIGURATION_ENABLED         1
  UNMIGRATED  DD_REMOTE_CONFIG_POLL_INTERVAL_SECONDS  1

PACKAGE: internal/stacktrace
  STATUS      CONFIG                           CALL_SITES
  UNMIGRATED  DD_APPSEC_MAX_STACK_TRACE_DEPTH  1
  UNMIGRATED  DD_APPSEC_STACK_TRACE_ENABLED    1

PACKAGE: internal/telemetry
  STATUS      CONFIG                                             CALL_SITES
  STILL_READ  DD_API_KEY                                         1
  STILL_READ  DD_SITE                                            1
  UNMIGRATED  DD_API_SECURITY_ENDPOINT_COLLECTION_MESSAGE_LIMIT  1
  UNMIGRATED  DD_INSTRUMENTATION_TELEMETRY_ENABLED               1
  UNMIGRATED  DD_TELEMETRY_DEBUG                                 1
  UNMIGRATED  DD_TELEMETRY_DEPENDENCY_COLLECTION_ENABLED         1
  UNMIGRATED  DD_TELEMETRY_EXTENDED_HEARTBEAT_INTERVAL           1
  UNMIGRATED  DD_TELEMETRY_HEARTBEAT_INTERVAL                    1
  UNMIGRATED  DD_TELEMETRY_LOG_COLLECTION_ENABLED                1
  UNMIGRATED  DD_TELEMETRY_METRICS_ENABLED                       1

PACKAGE: openfeature
  STATUS      CONFIG                                                     CALL_SITES
  STILL_READ  DD_ENV                                                     2
  STILL_READ  DD_EXPERIMENTAL_FLAGGING_PROVIDER_ENABLED                  1
  STILL_READ  DD_SERVICE                                                 2
  STILL_READ  DD_VERSION                                                 2
  UNMIGRATED  DD_EXPERIMENTAL_FLAGGING_PROVIDER_SPAN_ENRICHMENT_ENABLED  1
  UNMIGRATED  DD_FLAGGING_EVALUATION_COUNTS_ENABLED                      1

PACKAGE: profiler
  STATUS      CONFIG                                    CALL_SITES
  STILL_READ  DD_API_KEY                                1
  STILL_READ  DD_ENV                                    1
  STILL_READ  DD_SERVICE                                1
  STILL_READ  DD_SITE                                   1
  STILL_READ  DD_TAGS                                   1
  STILL_READ  DD_TRACE_STARTUP_LOGS                     1
  STILL_READ  DD_VERSION                                1
  UNMIGRATED  DD_PROFILING_AGENTLESS                    1
  UNMIGRATED  DD_PROFILING_DEBUG_COMPRESSION_SETTINGS   1
  UNMIGRATED  DD_PROFILING_DELTA                        1
  UNMIGRATED  DD_PROFILING_ENABLED                      3
  UNMIGRATED  DD_PROFILING_ENDPOINT_COUNT_ENABLED       1
  UNMIGRATED  DD_PROFILING_EXECUTION_TRACE_ENABLED      1
  UNMIGRATED  DD_PROFILING_EXECUTION_TRACE_LIMIT_BYTES  1
  UNMIGRATED  DD_PROFILING_EXECUTION_TRACE_PERIOD       1
  UNMIGRATED  DD_PROFILING_FLUSH_ON_EXIT                1
  UNMIGRATED  DD_PROFILING_OUTPUT_DIR                   1
  UNMIGRATED  DD_PROFILING_UPLOAD_TIMEOUT               1
  UNMIGRATED  DD_PROFILING_URL                          1

darccio added 2 commits July 9, 2026 08:46
Two CI failures on the inspectable-tracer branch:

- contrib mark3labs/mcp-go and modelcontextprotocol/go-sdk test files
  still called llmobstest.Collector.Stop()/WaitForLLMObsSpans(), which
  no longer exist. Use a bare testTracer(t) (cleanup is automatic via
  tracertest.Bootstrap) and tracer.Flush() + Collector.Spans() instead.

- os/cmdi.go set DD_APPSEC_* in Setup, which now runs after the tracer
  bootstraps, so RASP was never armed (403 expected, 500 got). Move the
  skip checks and appsec env vars into PreBootstrap, mirroring os/lfi.go.
@darccio
darccio merged commit e50726f into main Jul 9, 2026
467 of 473 checks passed
@darccio
darccio deleted the dario.castane/rd/inspectable-tracer-v2 branch July 9, 2026 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assisted AI/LLM assistance used in this PR (partially or fully) apm:ecosystem contrib/* related feature requests or bugs mergequeue-status: removed team:apm-go

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants