Skip to content

fix(openai-agents): preserve structural span ancestry - #9674

Merged
crysmags merged 6 commits into
masterfrom
apm-ai-toolkit/execute/openai-agents/20260803-172059
Aug 7, 2026
Merged

fix(openai-agents): preserve structural span ancestry#9674
crysmags merged 6 commits into
masterfrom
apm-ai-toolkit/execute/openai-agents/20260803-172059

Conversation

@crysmags

@crysmags crysmags commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Updates the OpenAI Agents integration for the structural task and turn spans enabled by default in @openai/agents 0.14.

The plugin continues to omit Datadog spans for those structural nodes. Instead, it records their parent links and resolves descendants to the nearest traced ancestor. This preserves:

  • model request and handoff parentage under agent spans
  • workflow finalization when an agent errors
  • LLMObs top-level agent naming and workflow input/output reconstruction

It also bumps the three @openai/agents* test dependencies to 0.14.1 and adds regression coverage for both the 0.14 hierarchy and the pre-0.14 flat hierarchy.

Motivation

Dependabot PR #9642 exposed four deterministic failures in the openai-agents Actions job.

@openai/agents 0.14 changed the hierarchy from trace → agent → ... to trace → task → agent → turn → .... Because task and turn are intentionally untraced, direct parent lookup treated their traced descendants as children of the workflow and could not recover the top-level agent when finalizing an errored workflow.

This preserves the new structural ancestry without adding customer-visible spans or weakening existing assertions.

Additional Notes

Validation:

  • full openai-agents plugin suite: 73 passing, 0 failing
  • four original CI failures across 0.7.0 and 0.14.1: 8 passing
  • plugin ESLint: passing with zero warnings
  • git diff --check: passing

npm run verify:supported-integrations also detects unrelated pre-existing drift on master (25 stale dependency rows plus Node/runtime rows). This PR intentionally updates only the generated @openai/agents row to 0.14.1.

OpenAI Agents 0.14 adds untraced task and turn spans to the default hierarchy. Track those parent links so traced descendants resolve to the nearest Datadog span and errored workflows finish correctly.
@dd-octo-sts

dd-octo-sts Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 7.86 MB
Deduped: 8.52 MB
No deduping: 8.52 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.3 | 125.43 kB | 441.68 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-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Aug 4, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 98.52% (+0.01%)

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

@pr-commenter

pr-commenter Bot commented Aug 4, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-08-05 17:56:10

Comparing candidate commit 1771d9e in PR branch apm-ai-toolkit/execute/openai-agents/20260803-172059 with baseline commit 6f91c5c in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2315 metrics, 43 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 ----------------------------------'

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 [-206.803ms; +213.235ms] or [-7.751%; +7.992%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-230.024ms; +217.417ms] or [-8.997%; +8.504%]

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

  • unstable execution_time [-160.191ms; +157.944ms] or [-5.199%; +5.126%]

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

  • unstable execution_time [-190.868ms; +179.637ms] or [-6.570%; +6.183%]

scenario:appsec-control-20

  • unstable execution_time [-119.226ms; +135.896ms] or [-7.230%; +8.240%]

scenario:appsec-control-24

  • unstable execution_time [-110.273ms; +114.134ms] or [-8.863%; +9.174%]

scenario:appsec-control-26

  • unstable execution_time [-123.015ms; +131.248ms] or [-9.921%; +10.585%]

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

  • unstable execution_time [-14.637ms; +18.127ms] or [-5.712%; +7.074%]

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

  • unstable execution_time [-14683.707µs; +14229.564µs] or [-5.690%; +5.514%]

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

  • unstable execution_time [-27182.628µs; +28664.028µs] or [-4.921%; +5.189%]

scenario:appsec-iast-with-vulnerability-iast-enabled-always-active-20

  • unstable execution_time [-25.282ms; +30.338ms] or [-4.613%; +5.536%]

scenario:child_process-shell-string-24

  • unstable cpu_usage_percentage [-7.436%; +4.155%]
  • unstable execution_time [-22.501ms; +28.537ms] or [-6.805%; +8.631%]
  • unstable throughput [-261611.581op/s; +208212.527op/s] or [-7.317%; +5.823%]

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

  • unstable cpu_user_time [-2.056s; +4.425s] or [-23.246%; +50.044%]
  • unstable execution_time [-2.179s; +4.559s] or [-22.786%; +47.678%]
  • unstable instructions [-17.6G instructions; +37.9G instructions] or [-24.192%; +52.158%]
  • unstable max_rss_usage [-8.418MB; +18.026MB] or [-5.281%; +11.309%]
  • unstable throughput [-1208.512op/s; +589.376op/s] or [-34.302%; +16.729%]

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

  • unstable cpu_user_time [-1754.402ms; +573.128ms] or [-21.214%; +6.930%]
  • unstable execution_time [-1760.089ms; +588.787ms] or [-19.604%; +6.558%]
  • unstable instructions [-15.1G instructions; +4.8G instructions] or [-22.259%; +7.099%]
  • unstable throughput [-163.615op/s; +472.715op/s] or [-4.459%; +12.882%]

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

  • unstable cpu_user_time [-2274.147ms; +751.172ms] or [-23.908%; +7.897%]
  • unstable execution_time [-2288.873ms; +766.006ms] or [-22.372%; +7.487%]
  • unstable instructions [-20.5G instructions; +6.7G instructions] or [-25.828%; +8.413%]
  • unstable throughput [-155.786op/s; +450.432op/s] or [-4.806%; +13.897%]

scenario:debugger-line-probe-without-snapshot-26

  • unstable cpu_user_time [-4622.917ms; +3081.473ms] or [-41.692%; +27.790%]
  • unstable execution_time [-4651.193ms; +3106.664ms] or [-39.385%; +26.306%]
  • unstable instructions [-41.2G instructions; +27.3G instructions] or [-44.075%; +29.226%]
  • unstable max_rss_usage [-16.152MB; +10.305MB] or [-9.895%; +6.313%]
  • unstable throughput [-617.821op/s; +903.738op/s] or [-21.024%; +30.754%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-325162.442µs; +324177.942µs] or [-6.782%; +6.761%]
  • unstable execution_time [-323774.255µs; +324336.339µs] or [-6.648%; +6.659%]
  • unstable throughput [-113251.968op/s; +116071.325op/s] or [-6.580%; +6.744%]

scenario:iast-sink-check-20

  • unstable cpu_user_time [-178.476ms; +277.908ms] or [-4.206%; +6.549%]
  • unstable execution_time [-184.334ms; +269.881ms] or [-4.330%; +6.340%]

scenario:plugin-aws-sdk-lambda-inject-with-context-24

  • unstable cpu_user_time [-195.662ms; +187.359ms] or [-5.146%; +4.928%]

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

  • unstable max_rss_usage [-16.116MB; +42.753MB] or [-4.054%; +10.755%]

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

  • unstable max_rss_usage [-6733.630KB; +8500.487KB] or [-5.229%; +6.602%]

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

  • unstable max_rss_usage [-15.302MB; +35.437MB] or [-7.350%; +17.021%]

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

  • unstable throughput [-3.588op/s; +3.250op/s] or [-5.257%; +4.763%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-5412.508KB; +5430.841KB] or [-6.670%; +6.693%]

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.52%. Comparing base (6f91c5c) to head (1771d9e).
⚠️ Report is 30 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9674      +/-   ##
==========================================
- Coverage   98.53%   98.52%   -0.02%     
==========================================
  Files         955      963       +8     
  Lines      133293   136017    +2724     
  Branches    11401    11575     +174     
==========================================
+ Hits       131340   134006    +2666     
- Misses       1953     2011      +58     
Flag Coverage Δ
aiguard 56.97% <ø> (+0.13%) ⬆️
aiguard-integration 55.82% <ø> (+0.17%) ⬆️
apm-bucket-0 57.22% <ø> (+0.12%) ⬆️
apm-bucket-1 63.31% <ø> (+0.08%) ⬆️
apm-bucket-2 62.11% <ø> (+0.09%) ⬆️
apm-bucket-3 59.65% <ø> (+0.12%) ⬆️
apm-capabilities-tracing 62.57% <36.39%> (-0.06%) ⬇️
apm-integrations-aerospike 56.27% <ø> (+0.13%) ⬆️
apm-integrations-confluentinc-kafka-javascript 60.92% <ø> (+0.07%) ⬆️
apm-integrations-couchbase 56.69% <ø> (+0.13%) ⬆️
apm-integrations-http 62.10% <ø> (+0.20%) ⬆️
apm-integrations-kafkajs 61.54% <ø> (+0.06%) ⬆️
apm-integrations-next 59.26% <ø> (+0.66%) ⬆️
apm-integrations-prisma 58.27% <ø> (+0.10%) ⬆️
appsec 72.02% <ø> (+0.03%) ⬆️
appsec-express_fastify_graphql 69.45% <ø> (+0.06%) ⬆️
appsec-integration 50.22% <ø> (-0.21%) ⬇️
appsec-kafka_ldapjs_lodash 63.33% <ø> (+0.06%) ⬆️
appsec-mongodb-core_mongoose_mysql 66.96% <ø> (+0.07%) ⬆️
appsec-next 56.67% <ø> (-0.37%) ⬇️
appsec-node-serialize_passport_postgres 66.61% <ø> (+0.08%) ⬆️
appsec-sourcing_stripe_template 64.98% <ø> (+0.09%) ⬆️
debugger 64.20% <ø> (+0.06%) ⬆️
instrumentations-bucket-0 51.57% <ø> (+0.20%) ⬆️
instrumentations-bucket-1 59.60% <ø> (+0.13%) ⬆️
instrumentations-bucket-10 61.50% <ø> (+0.21%) ⬆️
instrumentations-bucket-11 51.48% <ø> (+0.20%) ⬆️
instrumentations-bucket-12 52.28% <ø> (+0.19%) ⬆️
instrumentations-bucket-13 51.59% <ø> (+0.20%) ⬆️
instrumentations-bucket-2 53.38% <ø> (+0.18%) ⬆️
instrumentations-bucket-3 58.66% <ø> (+0.14%) ⬆️
instrumentations-bucket-4 52.12% <ø> (+0.20%) ⬆️
instrumentations-bucket-5 57.16% <ø> (+0.19%) ⬆️
instrumentations-bucket-6 60.24% <ø> (+0.11%) ⬆️
instrumentations-bucket-7 58.02% <ø> (+0.14%) ⬆️
instrumentations-bucket-8 58.99% <ø> (+0.13%) ⬆️
instrumentations-bucket-9 61.04% <ø> (+0.23%) ⬆️
instrumentations-instrumentation-couchbase 50.84% <ø> (+0.22%) ⬆️
instrumentations-integration-esbuild 33.93% <ø> (+0.08%) ⬆️
llmobs-ai_anthropic_bedrock 62.81% <ø> (+0.46%) ⬆️
llmobs-bucket-1 61.28% <ø> (+0.13%) ⬆️
llmobs-openai 61.71% <38.77%> (+0.02%) ⬆️
llmobs-openai-agents_vertex-ai 59.94% <100.00%> (+0.31%) ⬆️
llmobs-sdk 66.46% <ø> (+0.41%) ⬆️
master-coverage 98.52% <100.00%> (?)
openfeature 55.61% <ø> (+0.18%) ⬆️
openfeature-unit 53.14% <ø> (+0.18%) ⬆️
platform-core_esbuild_instrumentations-misc 40.54% <ø> (-0.02%) ⬇️
platform-integration 60.48% <ø> (+0.15%) ⬆️
platform-shimmer_unit-guardrails_webpack 38.80% <ø> (+0.02%) ⬆️
plugins-bucket-0 56.78% <ø> (+0.11%) ⬆️
plugins-bucket-1 53.92% <ø> (+0.21%) ⬆️
plugins-bucket-11 61.81% <ø> (+0.10%) ⬆️
plugins-bucket-18 61.35% <ø> (+0.08%) ⬆️
plugins-bucket-19 59.56% <ø> (+0.12%) ⬆️
plugins-bucket-20 61.56% <ø> (+0.11%) ⬆️
plugins-bucket-4 58.17% <ø> (+0.14%) ⬆️
plugins-bullmq_cassandra_cookie 61.21% <ø> (+0.08%) ⬆️
plugins-cookie-parser_crypto_dd-trace-api 56.33% <ø> (+0.13%) ⬆️
plugins-fetch_fs_generic-pool 58.18% <ø> (+0.11%) ⬆️
plugins-google-cloud-pubsub_grpc_handlebars 64.05% <ø> (+0.05%) ⬆️
plugins-hapi_hono_ioredis 59.75% <ø> (+0.12%) ⬆️
plugins-jest_knex_langgraph 55.33% <ø> (+0.16%) ⬆️
plugins-ldapjs_light-my-request_limitd-client 58.09% <ø> (+0.14%) ⬆️
plugins-lodash_mariadb_memcached 57.64% <ø> (+0.11%) ⬆️
plugins-moleculer_mongodb_mongodb-core 61.33% <ø> (+0.06%) ⬆️
plugins-mongoose_multer_mysql 58.63% <ø> (+0.10%) ⬆️
plugins-mysql2_nats_node-serialize 60.17% <ø> (+0.08%) ⬆️
plugins-opensearch_passport-http_pino 59.07% <ø> (+0.09%) ⬆️
plugins-postgres_process_pug 58.23% <ø> (+0.11%) ⬆️
plugins-redis_router_sequelize 61.42% <ø> (+0.10%) ⬆️
plugins-test-and-upstream-rhea_undici_url 60.94% <ø> (+0.07%) ⬆️
plugins-valkey_vm_winston 57.59% <ø> (+0.11%) ⬆️
plugins-ws 59.10% <ø> (+0.09%) ⬆️
profiling 61.44% <ø> (+0.09%) ⬆️
serverless-aws-sdk-aws-sdk 54.85% <ø> (+0.16%) ⬆️
serverless-aws-sdk-base-inject-field 50.79% <ø> (+0.22%) ⬆️
serverless-aws-sdk-bedrockruntime 54.50% <ø> (+0.14%) ⬆️
serverless-aws-sdk-client 56.10% <ø> (+0.11%) ⬆️
serverless-aws-sdk-dynamodb 55.35% <ø> (+0.12%) ⬆️
serverless-aws-sdk-eventbridge 49.36% <ø> (+0.29%) ⬆️
serverless-aws-sdk-kinesis 58.88% <ø> (+0.07%) ⬆️
serverless-aws-sdk-lambda 57.03% <ø> (+0.09%) ⬆️
serverless-aws-sdk-s3 55.45% <ø> (+0.11%) ⬆️
serverless-aws-sdk-serverless-peer-service 59.28% <ø> (+0.07%) ⬆️
serverless-aws-sdk-sns 59.70% <ø> (+0.06%) ⬆️
serverless-aws-sdk-sqs 60.16% <ø> (+0.09%) ⬆️
serverless-aws-sdk-stepfunctions 55.28% <ø> (+0.12%) ⬆️
serverless-aws-sdk-util 51.33% <ø> (+0.21%) ⬆️
serverless-bucket-0 53.99% <ø> (+0.22%) ⬆️
serverless-bucket-1 58.82% <ø> (+0.11%) ⬆️
test-optimization-cucumber 71.47% <ø> (-0.09%) ⬇️
test-optimization-cypress 65.24% <ø> (-0.03%) ⬇️
test-optimization-jest 72.95% <ø> (+0.03%) ⬆️
test-optimization-mocha 72.52% <ø> (-0.19%) ⬇️
test-optimization-playwright-playwright-atr 60.15% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-efd 60.29% <ø> (+0.09%) ⬆️
test-optimization-playwright-playwright-final-status 60.45% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwright-impacted-tests 59.98% <ø> (+0.25%) ⬆️
test-optimization-playwright-playwright-reporting 61.17% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwright-test-management 60.98% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwright-test-span 60.20% <ø> (+0.02%) ⬆️
test-optimization-selenium 59.45% <ø> (-0.34%) ⬇️
test-optimization-testopt 57.89% <ø> (+0.07%) ⬆️
test-optimization-vitest 73.57% <ø> (-0.24%) ⬇️
test-optimization-vitest-browser 58.97% <ø> (+0.03%) ⬆️
test-optimization-webdriverio 64.88% <ø> (+0.53%) ⬆️

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.

Retain ended task and turn nodes only while observed descendants remain active, preserving delayed callback ancestry without keeping every completed turn.

Benchmark (100k turns, 5 trials, repeated in fresh processes):
- turn lifecycle: 9.9-10.2ms -> 7.8-8.1ms
- retained heap: 17.26MB -> effectively zero
- 100 cross-trace cleanups: 69-71ms -> 0.07ms
Cover concurrent children, retained duplicate ends, and the 32/33-level cleanup boundary.

Remove the cleanup walk cap because each iteration deletes a node, which makes pruning self-terminating even when parent links contain a cycle.
@crysmags
crysmags marked this pull request as ready for review August 5, 2026 16:56
@crysmags
crysmags requested review from a team as code owners August 5, 2026 16:56
@crysmags
crysmags requested review from tlhunter and removed request for a team August 5, 2026 16:56

@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: cc076401d4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +244 to +247
if (info) {
info.completionRequested = true
if (info.activeSpanCount > 0) return
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore LLMObs context while deferring workflow finish

When an earlier agents-core processor delays onSpanEnd (the case this path is meant to handle, e.g. an exporter flush), this returns from onTraceEnd with llmobsStorage still entered on the workflow span until the delayed child callback eventually completes. withTrace can then resolve and user code immediately after Runner.run() in the same async context may create unrelated LLMObs spans as children of the pending workflow; restore info.llmobsParentStore when completion is requested even if finishing the workflow span must wait for activeSpanCount to reach zero.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in 1771d9e: restored the saved LLMObs parent store on the first workflow completion request, before returning for active children, and stopped restoring it from the delayed child callback context. Added regression coverage that preserves a newer unrelated context when the child completes.

Comment on lines +148 to +150
info.ended = true
this.#pruneUntracedSpan(oaiSpan.spanId, info)
this.#spanEnded(info.traceId)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Finish workflows when structural root spans error

When @openai/agents 0.14 fails before an agent span exists, for example Runner.run(..., { maxTurns: 0 }), agents-core sets the error on the root task span and does not emit onTraceEnd on the thrown path. Because task/turn ends now go through this structural path instead of endSpan, the orphan-recovery logic for errored top-level spans is skipped, so this only prunes/counts down and leaves the workflow Datadog span open/unreported. Please request workflow completion for errored top-level structural spans as well.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in 1771d9e: errored top-level structural spans now request workflow completion before ancestry pruning and active-span countdown. Added regression coverage for a root task failing before any agent starts, including workflow error tags and completion.

@sabrenner sabrenner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

code overall lgtm! would just be nice to see a screenshot of an llmobs span from a sample app using this just to confirm it still looks ok, otherwise im good to approve

@tlhunter
tlhunter removed their request for review August 6, 2026 18:27
@crysmags
crysmags merged commit b4d3d1e into master Aug 7, 2026
680 checks passed
@crysmags
crysmags deleted the apm-ai-toolkit/execute/openai-agents/20260803-172059 branch August 7, 2026 14:42
dd-octo-sts Bot pushed a commit that referenced this pull request Aug 7, 2026
* fix(openai-agents): preserve structural span ancestry - OpenAI Agents 0.14 adds untraced task and turn spans to the default hierarchy. Track those parent links so traced descendants resolve to the nearest Datadog span and errored workflows finish correctly.
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Aug 7, 2026
dd-octo-sts Bot pushed a commit that referenced this pull request Aug 7, 2026
* fix(openai-agents): preserve structural span ancestry - OpenAI Agents 0.14 adds untraced task and turn spans to the default hierarchy. Track those parent links so traced descendants resolve to the nearest Datadog span and errored workflows finish correctly.
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Aug 7, 2026
sabrenner pushed a commit that referenced this pull request Aug 7, 2026
* fix(openai-agents): preserve structural span ancestry - OpenAI Agents 0.14 adds untraced task and turn spans to the default hierarchy. Track those parent links so traced descendants resolve to the nearest Datadog span and errored workflows finish correctly.
sabrenner pushed a commit that referenced this pull request Aug 7, 2026
* fix(openai-agents): preserve structural span ancestry - OpenAI Agents 0.14 adds untraced task and turn spans to the default hierarchy. Track those parent links so traced descendants resolve to the nearest Datadog span and errored workflows finish correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants