Skip to content

v5.118.0 proposal#9519

Draft
dd-octo-sts[bot] wants to merge 7 commits into
v5.xfrom
v5.118.0-proposal
Draft

v5.118.0 proposal#9519
dd-octo-sts[bot] wants to merge 7 commits into
v5.xfrom
v5.118.0-proposal

Conversation

@dd-octo-sts

@dd-octo-sts dd-octo-sts Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Features

  • LLM Observability: Add support for OpenAI Agents (trace-processor) #8044

Fixes

  • Feature Flags: Allow custom agentless endpoints #9481
  • General: Make peer service finalization idempotent #9364
  • LLM Observability: Llm observability traces have custom trace IDs #9460

BridgeAR and others added 7 commits July 24, 2026 05:58
* test: stop peer service checks racing operation spans

The shared helper started the operation before registering its trace expectation and only inspected the first span of each payload. MongoDB connection traffic could therefore consume the payload containing the expected operation span, leaving the test to time out.

* test: bind peer service checks to their operation spans

Delayed setup traces can carry the same peer-service tags as the operation under test, allowing the shared matcher to pass without observing that operation. Run each generator under a unique parent and match its child span instead.

Generator throws and invalid return values can bypass assertion cleanup. Keep the whole operation inside the cleanup boundary so the original failure is not replaced by a leaked-expectation teardown error.

* test: match peer service spans by trace

Peer-service spans can be nested below integration spans, so requiring a direct parent excluded valid operations. Match the generated trace to keep setup traffic isolated without constraining span depth.

* test: stop correlation spans delaying trace export

Keeping the correlation parent open until the operation settled delayed trace export. Integrations that publish duplicate finish notifications could then recompute `_dd.peer.service.source` before the trace was sent.

* fix(tracing): make peer service finalization idempotent

Repeated finish notifications can reach an outbound span before an ancestor lets the trace flush. The second pass treats the computed peer service as preconfigured and rewrites its source to `peer.service`; an existing source now marks finalization.

The peer-service assertion keeps its correlation parent open through completion and matches the integration component, so delayed setup traces and spans from another integration cannot satisfy it.

* test(mongodb): target bulkWrite peer service parent
…with 5 updates (#9478)

* chore(deps): bump the gh-actions-packages group across 6 directories with 5 updates

Bumps the gh-actions-packages group with 4 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action) and [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action).
Bumps the gh-actions-packages group with 1 update in the /.github/actions/datadog-ci directory: [actions/setup-node](https://github.com/actions/setup-node).
Bumps the gh-actions-packages group with 1 update in the /.github/actions/node/setup directory: [actions/setup-node](https://github.com/actions/setup-node).
Bumps the gh-actions-packages group with 1 update in the /.github/actions/testagent/logs directory: [actions/checkout](https://github.com/actions/checkout).
Bumps the gh-actions-packages group with 1 update in the /.github/actions/testagent/start directory: [actions/checkout](https://github.com/actions/checkout).
Bumps the gh-actions-packages group with 4 updates in the /.github/workflows directory: [actions/checkout](https://github.com/actions/checkout), [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action) and [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action).

Updates `actions/checkout` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@9c091bb...3d3c42e)

Updates `github/codeql-action/init` from 4.37.0 to 4.37.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@99df26d...7188fc3)

Updates `github/codeql-action/analyze` from 4.37.0 to 4.37.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@99df26d...7188fc3)

Updates `slackapi/slack-github-action` from 3.0.4 to 4.0.0
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Changelog](https://github.com/slackapi/slack-github-action/blob/main/CHANGELOG.md)
- [Commits](slackapi/slack-github-action@fc46ded...dcb1066)

Updates `actions/setup-node` from 6.4.0 to 7.0.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@48b55a0...8207627)

Updates `actions/setup-node` from 6.4.0 to 7.0.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](actions/setup-node@48b55a0...8207627)

Updates `actions/checkout` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@9c091bb...3d3c42e)

Updates `actions/checkout` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@9c091bb...3d3c42e)

Updates `actions/checkout` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@9c091bb...3d3c42e)

Updates `github/codeql-action/init` from 4.37.0 to 4.37.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@99df26d...7188fc3)

Updates `github/codeql-action/analyze` from 4.37.0 to 4.37.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@99df26d...7188fc3)

Updates `slackapi/slack-github-action` from 3.0.4 to 4.0.0
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Changelog](https://github.com/slackapi/slack-github-action/blob/main/CHANGELOG.md)
- [Commits](slackapi/slack-github-action@fc46ded...dcb1066)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: github/codeql-action/init
  dependency-version: 4.37.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.37.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: slackapi/slack-github-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: gh-actions-packages
- dependency-name: actions/setup-node
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: gh-actions-packages
- dependency-name: actions/setup-node
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: gh-actions-packages
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: github/codeql-action/init
  dependency-version: 4.37.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.37.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: gh-actions-packages
- dependency-name: slackapi/slack-github-action
  dependency-version: 4.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: gh-actions-packages
...

Signed-off-by: dependabot[bot] <support@github.com>

* attempt to fix jobs

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thomas Hunter II <tlhunter@datadog.com>
* feat(llmobs): add OpenAI Agents trace-processor integration

* ci(llmobs): test OpenAI Agents integration
* separate llmobs trace ids

* update exportSpan

* tests

* add tagger test

* additional fixups

* update tests from rebase
* fix(openfeature): support custom agentless endpoints

* fix(openfeature): never send API keys to custom endpoints

* fix(openfeature): clarify default endpoint error
@dd-octo-sts

dd-octo-sts Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Overall package size

Self size: 7.52 MB
Deduped: 8.19 MB
No deduping: 8.19 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-5

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

Copy link
Copy Markdown

Pipelines  Tests

Unblock PR with BitsAI

⚠️ Warnings

🚦 4 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-js | benchmark: [24, 3]   View in Datadog   GitLab

All Green | all-green   View in Datadog   GitHub Actions

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

View all 4 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

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

🎯 Code Coverage (details)
Patch Coverage: 99.46%
Overall Coverage: 98.25%

Useful? React with 👍 / 👎

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

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.45603% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 98.25%. Comparing base (6b35e7d) to head (9b61525).
⚠️ Report is 1922 commits behind head on v5.x.

Files with missing lines Patch % Lines
...ages/datadog-instrumentations/src/openai-agents.js 94.49% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             v5.x    #9519       +/-   ##
===========================================
+ Coverage   83.19%   98.25%   +15.06%     
===========================================
  Files         476      946      +470     
  Lines       20153   127982   +107829     
  Branches        0    11016    +11016     
===========================================
+ Hits        16766   125752   +108986     
+ Misses       3387     2230     -1157     
Flag Coverage Δ
aiguard 57.37% <47.72%> (?)
aiguard-integration 56.18% <50.44%> (?)
apm-bucket-0 58.60% <52.27%> (?)
apm-bucket-1 63.91% <52.27%> (?)
apm-bucket-2 62.67% <52.27%> (?)
apm-bucket-3 60.08% <52.27%> (?)
apm-capabilities-tracing 64.22% <34.53%> (?)
apm-integrations-aerospike 56.70% <52.27%> (?)
apm-integrations-confluentinc-kafka-javascript 61.55% <52.27%> (?)
apm-integrations-couchbase 57.06% <47.72%> (?)
apm-integrations-http 62.69% <52.27%> (?)
apm-integrations-kafkajs 62.16% <52.27%> (?)
apm-integrations-next 59.15% <47.72%> (?)
apm-integrations-tedious 57.39% <52.27%> (?)
appsec 72.83% <52.27%> (?)
appsec-express_fastify_graphql 70.32% <52.27%> (?)
appsec-integration 51.44% <45.68%> (?)
appsec-kafka_ldapjs_lodash 63.90% <52.27%> (?)
appsec-mongodb-core_mongoose_mysql 67.63% <52.27%> (?)
appsec-next 57.50% <52.27%> (?)
appsec-node-serialize_passport_postgres 67.30% <52.27%> (?)
appsec-sourcing_stripe_template 65.64% <52.27%> (?)
debugger 64.82% <52.27%> (?)
instrumentations-bucket-0 51.71% <47.72%> (?)
instrumentations-bucket-1 60.21% <47.72%> (?)
instrumentations-bucket-10 62.01% <52.27%> (?)
instrumentations-bucket-11 51.62% <47.72%> (?)
instrumentations-bucket-12 52.20% <47.72%> (?)
instrumentations-bucket-13 51.74% <47.72%> (?)
instrumentations-bucket-2 53.63% <47.72%> (?)
instrumentations-bucket-3 59.21% <47.72%> (?)
instrumentations-bucket-4 52.28% <47.72%> (?)
instrumentations-bucket-5 57.54% <52.27%> (?)
instrumentations-bucket-6 60.73% <52.27%> (?)
instrumentations-bucket-7 58.40% <52.27%> (?)
instrumentations-bucket-8 59.55% <52.27%> (?)
instrumentations-bucket-9 61.54% <47.72%> (?)
instrumentations-instrumentation-couchbase 51.02% <47.72%> (?)
instrumentations-integration-esbuild 34.32% <43.96%> (?)
llmobs-ai_anthropic_bedrock 62.78% <84.61%> (?)
llmobs-bucket-1 61.61% <79.84%> (?)
llmobs-openai 62.33% <48.94%> (?)
llmobs-openai-agents_vertex-ai 59.70% <97.53%> (?)
llmobs-sdk 65.48% <98.82%> (?)
openfeature 56.00% <50.00%> (?)
openfeature-unit 53.36% <52.08%> (?)
platform-core_esbuild_instrumentations-misc 40.64% <45.68%> (?)
platform-integration 61.35% <47.72%> (?)
platform-shimmer_unit-guardrails_webpack 39.06% <45.68%> (?)
plugins-bucket-0 57.04% <52.27%> (?)
plugins-bucket-1 54.29% <47.72%> (?)
plugins-bucket-11 61.70% <52.27%> (?)
plugins-bucket-17 61.96% <52.27%> (?)
plugins-bucket-18 60.03% <47.72%> (?)
plugins-bucket-19 62.04% <47.72%> (?)
plugins-bucket-4 58.56% <47.72%> (?)
plugins-bullmq_cassandra_cookie 61.73% <52.27%> (?)
plugins-cookie-parser_crypto_dd-trace-api 56.71% <47.72%> (?)
plugins-fetch_fs_generic-pool 58.76% <52.27%> (?)
plugins-google-cloud-pubsub_grpc_handlebars 64.67% <52.27%> (?)
plugins-hapi_hono_ioredis 60.21% <52.27%> (?)
plugins-langgraph_ldapjs_light-my-request 57.99% <47.72%> (?)
plugins-limitd-client_lodash_mariadb 57.94% <52.27%> (?)
plugins-memcached_mercurius_microgateway-core 61.33% <52.27%> (?)
plugins-mongoose_multer_mysql 59.07% <52.27%> (?)
plugins-mysql2_nats_node-serialize 60.70% <52.27%> (?)
plugins-opensearch_passport-http_pino 59.53% <52.27%> (?)
plugins-postgres_process_pug 58.26% <52.27%> (?)
plugins-redis_router_sequelize 62.08% <52.27%> (?)
plugins-test-and-upstream-rhea_undici_url 61.62% <52.27%> (?)
plugins-valkey_vm_winston 58.00% <52.27%> (?)
plugins-ws 59.58% <47.72%> (?)
profiling 62.14% <52.27%> (?)
serverless-aws-sdk-aws-sdk 55.05% <52.27%> (?)
serverless-aws-sdk-bedrockruntime 54.75% <52.27%> (?)
serverless-aws-sdk-client 56.42% <52.27%> (?)
serverless-aws-sdk-dynamodb 55.66% <52.27%> (?)
serverless-aws-sdk-eventbridge 49.38% <47.72%> (?)
serverless-aws-sdk-kinesis 59.33% <52.27%> (?)
serverless-aws-sdk-lambda 57.38% <52.27%> (?)
serverless-aws-sdk-s3 55.75% <52.27%> (?)
serverless-aws-sdk-serverless-peer-service 59.73% <52.27%> (?)
serverless-aws-sdk-sns 60.19% <52.27%> (?)
serverless-aws-sdk-sqs 60.61% <52.27%> (?)
serverless-aws-sdk-stepfunctions 55.58% <52.27%> (?)
serverless-aws-sdk-util 51.47% <47.72%> (?)
serverless-bucket-0 54.15% <47.72%> (?)
serverless-bucket-1 59.24% <47.72%> (?)
test-optimization-cucumber 72.04% <47.72%> (?)
test-optimization-cypress 65.48% <47.72%> (?)
test-optimization-jest 73.39% <47.72%> (?)
test-optimization-mocha 73.43% <47.72%> (?)
test-optimization-playwright-playwright-atr 60.25% <47.72%> (?)
test-optimization-playwright-playwright-efd 60.49% <47.72%> (?)
test-optimization-playwright-playwright-final-status 60.68% <47.72%> (?)
test-optimization-playwright-playwright-impacted-tests 60.19% <47.72%> (?)
test-optimization-playwright-playwright-reporting 61.59% <47.72%> (?)
test-optimization-playwright-playwright-test-management 52.13% <47.72%> (?)
test-optimization-playwright-playwright-test-span 60.38% <47.72%> (?)
test-optimization-selenium 60.12% <47.72%> (?)
test-optimization-vitest 70.33% <47.72%> (?)

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants