Skip to content

feat(startup-log): report OTLP export status#9517

Draft
bm1549 wants to merge 1 commit into
masterfrom
brian.marks/otlp-export-startup-log
Draft

feat(startup-log): report OTLP export status#9517
bm1549 wants to merge 1 commit into
masterfrom
brian.marks/otlp-export-startup-log

Conversation

@bm1549

@bm1549 bm1549 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds three boolean fields to the DATADOG TRACER CONFIGURATION startup log that report whether the tracer exports each telemetry signal over OTLP:

  • otlp_traces_export_enabledtrue when OTEL_TRACES_EXPORTER is otlp and the tracer isn't running in Test Optimization mode (Test Optimization keeps test spans on the citestcycle endpoint instead of OTLP).
  • otlp_metrics_export_enabled — reflects DD_METRICS_OTEL_ENABLED.
  • otlp_logs_export_enabled — reflects DD_LOGS_OTEL_ENABLED.

The startup-log spec is updated to cover the new fields, the Test Optimization case, and the default all-false state.

Motivation

Part of a cross-tracer effort to surface OTLP export status uniformly. Each dd-trace library emits the same JSON keys in its startup log, so the state reads the same way regardless of language.

Additional Notes

The values mirror the tracer's actual export behavior rather than the raw environment variables: the traces flag applies the same !isCiVisibility guard the exporter uses, and the metrics/logs flags read the config values the OTLP pipelines gate on.


Related PRs — cross-tracer OTLP startup-log effort

Add three boolean fields to the DATADOG TRACER CONFIGURATION startup log
indicating whether the tracer exports each telemetry signal over OTLP:

- otlp_traces_export_enabled  (OTEL_TRACES_EXPORTER === 'otlp', excluding
  Test Optimization mode, which keeps test spans on the citestcycle endpoint)
- otlp_metrics_export_enabled (DD_METRICS_OTEL_ENABLED)
- otlp_logs_export_enabled    (DD_LOGS_OTEL_ENABLED)

The snake_case keys are chosen for cross-language startup-log consistency.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bm1549 bm1549 added the AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos label Jul 24, 2026
@dd-octo-sts

dd-octo-sts Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 7.52 MB
Deduped: 8.18 MB
No deduping: 8.18 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.2 | 124.41 kB | 440.65 kB | | opentracing | 0.14.7 | 194.81 kB | 194.81 kB | | dc-polyfill | 0.1.11 | 25.74 kB | 25.74 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@datadog-prod-us1-3

datadog-prod-us1-3 Bot commented Jul 24, 2026

Copy link
Copy Markdown

Pipelines  Tests

⚠️ Warnings

🚦 3 Pipeline jobs failed

All Green | all-green   View in Datadog   GitHub Actions

🧪 1 Test failed

esm with @azure/functions &gt;=4 (4.16.2) &#34;before all&#34; hook for &#34;propagates cosmosdb writes to azure function trigger&#34; from with @azure/functions &gt;=4 (4.16.2)   View in Datadog
Command failed: /home/runner/work/dd-trace-js/dd-trace-js/node_modules/.bin/bun add &#34;@azure/functions@4 &lt;=4.16.2&#34; &#34;azure-functions-core-tools@4 &lt;=4.12.1&#34; &#34;@azure/cosmos@4.9.2&#34; --linker=hoisted --trust --silent
error: postinstall script from &#34;azure-functions-core-tools&#34; exited with 1

Error: Command failed: /home/runner/work/dd-trace-js/dd-trace-js/node_modules/.bin/bun add &#34;@azure/functions@4 &lt;=4.16.2&#34; &#34;azure-functions-core-tools@4 &lt;=4.12.1&#34; &#34;@azure/cosmos@4.9.2&#34; --linker=hoisted --trust --silent
error: postinstall script from &#34;azure-functions-core-tools&#34; exited with 1

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:891:11)
    at execSync (node:child_process:963:15)
...

Instrumentation | Instrumentation / integration-webpack (node-active)   View in Datadog   GitHub Actions

Instrumentation | Instrumentation / integration-webpack (node-latest)   View in Datadog   GitHub Actions

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

🔄 Datadog retried 1 test - 1 passed on retry View in Datadog

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

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 98.45% (+0.06%)

Useful? React with 👍 / 👎

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

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.45%. Comparing base (b37c68d) to head (9444363).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9517      +/-   ##
==========================================
+ Coverage   98.39%   98.45%   +0.05%     
==========================================
  Files         947      947              
  Lines      128041   128044       +3     
  Branches    11091    11882     +791     
==========================================
+ Hits       125987   126066      +79     
+ Misses       2054     1978      -76     
Flag Coverage Δ
aiguard 57.49% <100.00%> (-0.03%) ⬇️
aiguard-integration 56.34% <100.00%> (+<0.01%) ⬆️
apm-bucket-0 57.74% <100.00%> (-0.03%) ⬇️
apm-bucket-1 64.02% <100.00%> (-0.02%) ⬇️
apm-bucket-2 62.79% <100.00%> (-2.15%) ⬇️
apm-bucket-3 60.23% <100.00%> (-1.59%) ⬇️
apm-capabilities-tracing 64.30% <100.00%> (+<0.01%) ⬆️
apm-integrations-aerospike 56.83% <100.00%> (-0.03%) ⬇️
apm-integrations-confluentinc-kafka-javascript 61.67% <100.00%> (-0.03%) ⬇️
apm-integrations-couchbase 57.18% <100.00%> (-0.03%) ⬇️
apm-integrations-http 62.80% <100.00%> (-0.02%) ⬇️
apm-integrations-kafkajs 62.28% <100.00%> (?)
apm-integrations-next 59.27% <100.00%> (-0.02%) ⬇️
apm-integrations-prisma 58.76% <100.00%> (?)
apm-integrations-sharedb_integrations-tedious ?
appsec 72.94% <100.00%> (-0.02%) ⬇️
appsec-express_fastify_graphql 70.41% <100.00%> (-0.02%) ⬇️
appsec-integration 51.50% <100.00%> (+0.15%) ⬆️
appsec-kafka_ldapjs_lodash 64.01% <100.00%> (-0.02%) ⬇️
appsec-mongodb-core_mongoose_mysql 67.72% <100.00%> (-0.02%) ⬇️
appsec-next 57.61% <100.00%> (-0.02%) ⬇️
appsec-node-serialize_passport_postgres 67.39% <100.00%> (-0.02%) ⬇️
appsec-sourcing_stripe_template 65.74% <100.00%> (-0.02%) ⬇️
debugger 64.92% <100.00%> (-0.04%) ⬇️
instrumentations-bucket-0 51.84% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-1 60.32% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-10 62.12% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-11 51.75% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-12 52.32% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-13 51.86% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-2 53.75% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-3 59.32% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-4 52.41% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-5 57.65% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-6 60.85% <100.00%> (-0.03%) ⬇️
instrumentations-bucket-7 58.52% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-8 59.66% <100.00%> (-0.02%) ⬇️
instrumentations-bucket-9 61.64% <100.00%> (-0.02%) ⬇️
instrumentations-instrumentation-couchbase 51.15% <100.00%> (-0.03%) ⬇️
instrumentations-integration-esbuild 34.27% <0.00%> (-0.01%) ⬇️
llmobs-ai_anthropic_bedrock 62.90% <100.00%> (-0.02%) ⬇️
llmobs-bucket-1 61.71% <100.00%> (-0.02%) ⬇️
llmobs-openai 62.44% <100.00%> (-0.02%) ⬇️
llmobs-openai-agents_vertex-ai 59.80% <100.00%> (-0.01%) ⬇️
llmobs-sdk 65.60% <100.00%> (-0.03%) ⬇️
master-coverage 98.45% <100.00%> (?)
openfeature 56.20% <100.00%> (+<0.01%) ⬆️
openfeature-unit 53.51% <100.00%> (-0.03%) ⬇️
platform-core_esbuild_instrumentations-misc 40.64% <100.00%> (-0.02%) ⬇️
platform-integration 61.50% <100.00%> (+<0.01%) ⬆️
platform-shimmer_unit-guardrails_webpack 39.27% <100.00%> (-0.02%) ⬇️
plugins-bucket-0 57.15% <100.00%> (-0.02%) ⬇️
plugins-bucket-1 54.45% <100.00%> (+<0.01%) ⬆️
plugins-bucket-11 62.36% <100.00%> (+0.39%) ⬆️
plugins-bucket-14 ?
plugins-bucket-17 ?
plugins-bucket-18 62.06% <100.00%> (+3.44%) ⬆️
plugins-bucket-19 60.15% <100.00%> (-1.73%) ⬇️
plugins-bucket-20 62.15% <100.00%> (-0.26%) ⬇️
plugins-bucket-4 58.68% <100.00%> (-0.02%) ⬇️
plugins-bullmq_cassandra_cookie 61.85% <100.00%> (-0.02%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 56.84% <100.00%> (-0.03%) ⬇️
plugins-fetch_fs_generic-pool 58.88% <100.00%> (-0.02%) ⬇️
plugins-google-cloud-pubsub_grpc_handlebars 64.78% <100.00%> (-0.02%) ⬇️
plugins-hapi_hono_ioredis 60.33% <100.00%> (-0.02%) ⬇️
plugins-jest_knex_langgraph 55.71% <100.00%> (?)
plugins-jest_langgraph_ldapjs ?
plugins-ldapjs_light-my-request_limitd-client 58.61% <100.00%> (?)
plugins-light-my-request_limitd-client_lodash ?
plugins-lodash_mariadb_memcached 58.19% <100.00%> (?)
plugins-mariadb_memcached_mercurius ?
plugins-moleculer_mongodb_mongodb-core 62.01% <100.00%> (?)
plugins-mongodb-core_mongoose_multer ?
plugins-mongoose_multer_mysql 59.19% <100.00%> (?)
plugins-mysql2_nats_node-serialize 60.82% <100.00%> (?)
plugins-mysql_mysql2_nats ?
plugins-opensearch_passport-http_pino 59.65% <100.00%> (?)
plugins-pino_postgres_process ?
plugins-postgres_process_pug 58.39% <100.00%> (?)
plugins-pug_redis_router ?
plugins-redis_router_sequelize 62.20% <100.00%> (?)
plugins-test-and-upstream-rhea_undici_url 61.73% <100.00%> (?)
plugins-url_valkey_vm ?
plugins-valkey_vm_winston 58.12% <100.00%> (?)
plugins-winston_ws ?
plugins-ws 59.70% <100.00%> (?)
profiling 62.24% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-aws-sdk 55.15% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-bedrockruntime 54.87% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-client 56.54% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-dynamodb 55.77% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-eventbridge 49.49% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-kinesis 59.44% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-lambda 57.49% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-s3 55.86% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-serverless-peer-service 59.84% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-sns 60.30% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-sqs 60.72% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-stepfunctions 55.69% <100.00%> (-0.02%) ⬇️
serverless-aws-sdk-util 51.59% <100.00%> (-0.03%) ⬇️
serverless-azure-functions-servicebus_lambda 59.19% <100.00%> (?)
serverless-bucket-0 54.62% <100.00%> (+0.27%) ⬆️
serverless-bucket-1 ?
test-optimization-cucumber 71.97% <0.00%> (-0.01%) ⬇️
test-optimization-cypress 65.86% <0.00%> (+0.10%) ⬆️
test-optimization-jest 73.34% <100.00%> (+0.01%) ⬆️
test-optimization-mocha 73.53% <100.00%> (+0.05%) ⬆️
test-optimization-playwright-playwright-atr 60.46% <0.00%> (+<0.01%) ⬆️
test-optimization-playwright-playwright-efd 60.64% <0.00%> (+0.01%) ⬆️
test-optimization-playwright-playwright-final-status 60.61% <0.00%> (+0.01%) ⬆️
test-optimization-playwright-playwright-impacted-tests 60.34% <0.00%> (+0.17%) ⬆️
test-optimization-playwright-playwright-reporting 61.64% <0.00%> (-0.10%) ⬇️
test-optimization-playwright-playwright-test-management 61.15% <0.00%> (+0.18%) ⬆️
test-optimization-playwright-playwright-test-span 60.56% <0.00%> (-0.06%) ⬇️
test-optimization-selenium 60.12% <0.00%> (-0.14%) ⬇️
test-optimization-testopt 58.57% <100.00%> (+0.08%) ⬆️
test-optimization-vitest 70.39% <0.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@pr-commenter

pr-commenter Bot commented Jul 24, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-24 01:52:23

Comparing candidate commit 9444363 in PR branch brian.marks/otlp-export-startup-log with baseline commit b37c68d in branch master.

📊 Benchmarking dashboard

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

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:encoders-0.4-events-native-20

  • 🟩 max_rss_usage [-10.300MB; -3.173MB] or [-7.301%; -2.249%]

Unstable benchmarks

These benchmarks have a confidence interval too wide to call a change; treat them as noise rather than signal.

scenario:appsec-appsec-enabled-24

  • unstable execution_time [-212152.649µs; +212092.083µs] or [-7.943%; +7.941%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-230.119ms; +235.799ms] or [-9.018%; +9.240%]

scenario:appsec-appsec-enabled-with-attacks-24

  • unstable execution_time [-165.452ms; +159.494ms] or [-5.338%; +5.145%]

scenario:appsec-appsec-enabled-with-attacks-26

  • unstable execution_time [-192790.998µs; +193393.631µs] or [-6.629%; +6.649%]

scenario:appsec-control-20

  • unstable execution_time [-121.444ms; +127.513ms] or [-7.404%; +7.774%]

scenario:appsec-control-24

  • unstable execution_time [-113944.512µs; +114282.745µs] or [-9.146%; +9.173%]

scenario:appsec-control-26

  • unstable execution_time [-128.815ms; +119.070ms] or [-10.396%; +9.610%]

scenario:appsec-iast-no-vulnerability-control-20

  • unstable execution_time [-16297.948µs; +14494.519µs] or [-6.350%; +5.647%]

scenario:appsec-iast-no-vulnerability-iast-enabled-default-config-20

  • unstable execution_time [-16.971ms; +19.526ms] or [-6.471%; +7.445%]

scenario:appsec-iast-with-vulnerability-control-20

  • unstable execution_time [-23.908ms; +33.330ms] or [-4.368%; +6.089%]

scenario:debugger-line-probe-with-snapshot-minimal-24

  • unstable cpu_user_time [-1504.825ms; +482.249ms] or [-18.335%; +5.876%]
  • unstable execution_time [-1519.150ms; +510.644ms] or [-16.997%; +5.713%]
  • unstable instructions [-15.0G instructions; +4.8G instructions] or [-22.122%; +7.156%]
  • unstable throughput [-150.248op/s; +432.117op/s] or [-4.099%; +11.790%]

scenario:debugger-line-probe-with-snapshot-minimal-26

  • unstable cpu_user_time [-2314.037ms; +737.894ms] or [-24.312%; +7.752%]
  • unstable execution_time [-2321.829ms; +760.648ms] or [-22.668%; +7.426%]
  • unstable instructions [-20.5G instructions; +6.7G instructions] or [-25.759%; +8.381%]
  • unstable throughput [-154.215op/s; +460.232op/s] or [-4.762%; +14.211%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-286.361ms; +377.414ms] or [-5.923%; +7.807%]
  • unstable execution_time [-286.745ms; +373.073ms] or [-5.843%; +7.602%]
  • unstable throughput [-134164.122op/s; +100300.722op/s] or [-7.841%; +5.862%]

scenario:plugin-claude-agent-sdk-compact-stream-scan-26

  • unstable cpu_usage_percentage [-6.169%; +4.151%]

scenario:plugin-graphql-long-with-depth-and-collapse-off-20

  • unstable max_rss_usage [-22.884MB; +33.079MB] or [-5.890%; +8.514%]

scenario:plugin-graphql-long-with-depth-off-26

  • unstable max_rss_usage [-26.178MB; +15.457MB] or [-11.795%; +6.964%]

scenario:plugin-graphql-long-with-depth-on-max-20

  • unstable cpu_user_time [-590.415ms; +594.244ms] or [-5.119%; +5.152%]
  • unstable execution_time [-601.565ms; +603.797ms] or [-5.113%; +5.132%]
  • unstable throughput [-3.548op/s; +3.512op/s] or [-5.187%; +5.136%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-6586.297KB; +4810.630KB] or [-8.038%; +5.871%]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated Largely based on code generated by an AI or LLM. This label is the same across all dd-trace-* repos semver-minor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant