Skip to content

fix(ai): resolve unbounded memory growth for the vercel ai sdk llmobs plugin - #10106

Merged
BridgeAR merged 10 commits into
masterfrom
sabrenner/ai-tool-capping
Sep 3, 2026
Merged

BridgeAR merged 10 commits into
masterfrom
sabrenner/ai-tool-capping

Conversation

@sabrenner

@sabrenner sabrenner commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Entirely removes the tool tracking in the Datadog-telemetry based plugin for the Vercel AI SDK. This is because, when initially implementing, I had thought the v4 SDK required an array of tools with an ID passed in. This was a self-hallucination over a year ago, and this was never the case. All the special handling for that can safely be removed, removing any memory overhead associated with in.

Motivation

Fix memory issues associated with the AI SDK plugin. Fixes #9276

Additional Notes

Majority LOC for new cassette fixtures added for proper tool names.

@dd-octo-sts

dd-octo-sts Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 8.74 MB
Deduped: 9.41 MB
No deduping: 9.41 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.4.0 | 127.33 kB | 447.04 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 Sep 1, 2026 •

Copy link
Copy Markdown

Tests

✅ All CI checks and tests passed.

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
• Patch Coverage: 100.00%
• Overall Coverage: 98.63% (-0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ad4ab78 | Docs | View more details | Give us feedback!

@codecov

codecov Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.63%. Comparing base (6601f10) to head (ad4ab78).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10106      +/-   ##
==========================================
- Coverage   98.63%   98.63%   -0.01%     
==========================================
  Files        1002     1002              
  Lines      154897   154811      -86     
  Branches    13244    13454     +210     
==========================================
- Hits       152779   152693      -86     
  Misses       2118     2118              
Flag Coverage Δ
aiguard 63.81% <ø> (-0.05%) ⬇️
aiguard-integration 58.91% <0.00%> (-0.03%) ⬇️
apm-capabilities-tracing 62.86% <0.00%> (+<0.01%) ⬆️
apm-integrations-aerospike 61.21% <ø> (-0.06%) ⬇️
apm-integrations-aerospike-_integrat-1d185c06 63.18% <ø> (-0.05%) ⬇️
apm-integrations-confluentinc-kafka--d0bf0045 67.29% <ø> (-0.05%) ⬇️
apm-integrations-couchbase 61.71% <ø> (-0.06%) ⬇️
apm-integrations-elasticsearch_integ-31b69669 68.55% <ø> (-0.05%) ⬇️
apm-integrations-http 66.83% <ø> (-0.05%) ⬇️
apm-integrations-http2_integrations--9aea12f5 68.15% <ø> (-0.05%) ⬇️
apm-integrations-kafkajs 67.87% <ø> (-0.05%) ⬇️
apm-integrations-next 64.87% <ø> (-0.05%) ⬇️
apm-integrations-prisma 62.47% <ø> (-0.05%) ⬇️
apm-integrations-restify_integration-b312dd16 65.00% <ø> (-0.05%) ⬇️
appsec 77.29% <ø> (-0.04%) ⬇️
appsec-express_fastify_graphql 72.68% <ø> (-0.03%) ⬇️
appsec-integration 49.54% <ø> (-0.01%) ⬇️
appsec-kafka_ldapjs_lodash 67.99% <ø> (-0.01%) ⬇️
appsec-mongodb-core_mongoose_mysql 71.11% <ø> (-0.04%) ⬇️
appsec-next 57.67% <ø> (-0.04%) ⬇️
appsec-node-serialize_passport_postgres 70.59% <ø> (-0.04%) ⬇️
appsec-sourcing_stripe_template 69.03% <ø> (-0.05%) ⬇️
debugger 69.74% <ø> (-0.09%) ⬇️
instr-ai_instrumentation-anthropic-l-e862da55 56.57% <ø> (-0.06%) ⬇️
instr-bluebird_instrumentation-body--02ae4b41 64.82% <ø> (-0.05%) ⬇️
instr-confluentinc-kafka-javascript 55.98% <ø> (-0.06%) ⬇️
instr-connect_instrumentation-cookie-0bbb44d9 57.68% <ø> (-0.06%) ⬇️
instr-couchbase 55.19% <ø> (-0.06%) ⬇️
instr-cypress-config_instrumentation-4db1de46 57.99% <ø> (-0.05%) ⬇️
instr-express-multi-version_instrume-f5caf487 64.28% <ø> (-0.05%) ⬇️
instr-fetch_instrumentation-fs_instr-43dfe6a2 50.52% <ø> (-0.05%) ⬇️
instr-hono_instrumentation-http_inst-026a5d4d 66.14% <ø> (-0.05%) ⬇️
instr-kafkajs_instrumentation-knex_i-ca6f5b19 56.63% <ø> (-0.06%) ⬇️
instr-light-my-request_instrumentati-8c9fceca 63.60% <ø> (-0.04%) ⬇️
instr-mysql_instrumentation-mysql2_i-05f94c42 59.08% <ø> (-0.05%) ⬇️
instr-openai-lifecycle_instrumentati-783580bd 65.95% <ø> (-0.05%) ⬇️
instr-passport-http_instrumentation--2b6c8eb6 66.56% <ø> (-0.04%) ⬇️
instr-promise_instrumentation-promis-8479bae3 56.41% <ø> (-0.06%) ⬇️
instr-restify_instrumentation-router-5641467c 56.55% <ø> (-0.06%) ⬇️
instr-url_instrumentation-when_instr-22ca7078 56.43% <ø> (-0.06%) ⬇️
instrumentations-integration-esbuild 34.65% <ø> (-0.03%) ⬇️
llmobs-ai_anthropic_bedrock 66.77% <100.00%> (-0.08%) ⬇️
llmobs-claude-agent-sdk_google-genai-da2c851e 64.96% <ø> (-0.04%) ⬇️
llmobs-openai 66.78% <ø> (-0.04%) ⬇️
llmobs-openai-agents_vertex-ai 64.11% <ø> (-0.05%) ⬇️
llmobs-sdk 76.56% <ø> (-0.04%) ⬇️
master-coverage 98.63% <100.00%> (?)
openfeature 60.10% <ø> (-0.03%) ⬇️
openfeature-unit 58.82% <ø> (-0.06%) ⬇️
platform-core_esbuild_instrumentations-misc 41.33% <ø> (-0.03%) ⬇️
platform-integration 65.20% <ø> (-0.03%) ⬇️
platform-shimmer_unit-guardrails_webpack 39.08% <ø> (-0.03%) ⬇️
plugins-aws-durable-execution-sdk-js-2bc88c07 61.11% <ø> (-0.05%) ⬇️
plugins-azure-event-hubs_azure-servi-50d5b0fc 58.50% <ø> (-0.03%) ⬇️
plugins-browser-bunyan_bullmq_cassandra 66.35% <ø> (-0.05%) ⬇️
plugins-cookie_cookie-parser_crypto 56.17% <ø> (-0.06%) ⬇️
plugins-dd-trace-api_express-mongo-s-83827a5c 61.77% <ø> (-0.06%) ⬇️
plugins-fastify_fetch_fs 65.99% <ø> (-0.02%) ⬇️
plugins-generic-pool_google-cloud-pubsub_grpc 69.53% <ø> (-0.05%) ⬇️
plugins-handlebars_hapi_hono 64.25% <ø> (-0.05%) ⬇️
plugins-ioredis_knex_langgraph 61.95% <ø> (-0.05%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 63.97% <ø> (-0.05%) ⬇️
plugins-lodash_mariadb_memcached 64.43% <ø> (-0.05%) ⬇️
plugins-mercurius_microgateway-core_-b9bd83c4 67.82% <ø> (-0.04%) ⬇️
plugins-moleculer_mongodb_mongodb-core 66.69% <ø> (-0.05%) ⬇️
plugins-mongoose_multer_mysql 64.54% <ø> (-0.05%) ⬇️
plugins-mysql2_nats_node-serialize 66.78% <ø> (-0.05%) ⬇️
plugins-opensearch_passport-http_pino 64.67% <ø> (-0.05%) ⬇️
plugins-postgres_process_pug 63.72% <ø> (-0.05%) ⬇️
plugins-redis_router_sequelize 67.26% <ø> (-0.05%) ⬇️
plugins-test-and-upstream-amqp10_tes-914101e2 65.48% <ø> (-0.05%) ⬇️
plugins-test-and-upstream-avsc_test--408e8d3a 65.59% <ø> (-0.05%) ⬇️
plugins-test-and-upstream-graphql_te-59dd94de 68.83% <ø> (-0.04%) ⬇️
plugins-test-and-upstream-rhea_undici_url 66.58% <ø> (-0.05%) ⬇️
plugins-valkey_vm_winston 63.04% <ø> (-0.05%) ⬇️
plugins-ws 65.10% <ø> (-0.05%) ⬇️
profiling 66.67% <ø> (-0.05%) ⬇️
serverless-aws-sdk-aws-sdk 55.94% <ø> (-0.05%) ⬇️
serverless-aws-sdk-base-inject-field 55.74% <ø> (-0.06%) ⬇️
serverless-aws-sdk-bedrockruntime 59.29% <ø> (-0.05%) ⬇️
serverless-aws-sdk-client 60.65% <ø> (-0.05%) ⬇️
serverless-aws-sdk-dynamodb 59.73% <ø> (-0.04%) ⬇️
serverless-aws-sdk-eventbridge 58.12% <ø> (-0.04%) ⬇️
serverless-aws-sdk-kinesis 63.67% <ø> (-0.05%) ⬇️
serverless-aws-sdk-lambda 61.65% <ø> (-0.05%) ⬇️
serverless-aws-sdk-s3 59.77% <ø> (-0.05%) ⬇️
serverless-aws-sdk-serverless-peer-service 64.23% <ø> (-0.05%) ⬇️
serverless-aws-sdk-sns 64.55% <ø> (-0.05%) ⬇️
serverless-aws-sdk-sqs 65.01% <ø> (-0.05%) ⬇️
serverless-aws-sdk-stepfunctions 59.63% <ø> (-0.05%) ⬇️
serverless-aws-sdk-util 56.37% <ø> (-0.06%) ⬇️
serverless-azure-durable-functions_a-776237ee 57.66% <ø> (-0.04%) ⬇️
serverless-azure-functions-eventhubs-61ee6313 64.30% <ø> (-0.05%) ⬇️
test-optimization-cucumber 70.42% <ø> (+<0.01%) ⬆️
test-optimization-cypress 64.80% <ø> (+0.03%) ⬆️
test-optimization-jest 71.89% <ø> (+<0.01%) ⬆️
test-optimization-mocha 71.89% <ø> (+0.04%) ⬆️
test-optimization-playwright-playwri-363e40a6 59.69% <ø> (+0.08%) ⬆️
test-optimization-playwright-playwri-5141d36d 61.21% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwri-5b35813b 59.58% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwri-924f4516 60.87% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwri-d6f5a99b 59.46% <ø> (+0.01%) ⬆️
test-optimization-playwright-playwright-atr 59.19% <ø> (-0.04%) ⬇️
test-optimization-playwright-playwright-efd 60.11% <ø> (-0.04%) ⬇️
test-optimization-selenium 58.78% <ø> (-0.07%) ⬇️
test-optimization-testopt 61.43% <ø> (+0.01%) ⬆️
test-optimization-vitest 72.47% <ø> (+0.03%) ⬆️
test-optimization-vitest-browser 58.84% <ø> (-0.04%) ⬇️
test-optimization-webdriverio 65.87% <ø> (+0.03%) ⬆️

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.

@sabrenner

Copy link
Copy Markdown
Collaborator 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: 055fd08f2b

ℹ️ 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 thread packages/dd-trace/src/llmobs/plugins/ai/ddTelemetry.js Outdated
Comment thread packages/dd-trace/test/llmobs/plugins/ai/tool-call-id-memory.mjs Outdated
@sabrenner sabrenner changed the title fix(ai): do not let recorded tools for ai plugin grow unbounded fix(ai): do not let recorded tools for ai plugin grow unbounded for v5+ Sep 2, 2026
@sabrenner

Copy link
Copy Markdown
Collaborator 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: 051d4af766

ℹ️ 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 thread packages/dd-trace/src/llmobs/plugins/ai/ddTelemetry.js Outdated
@sabrenner

Copy link
Copy Markdown
Collaborator Author

@codex review

@pr-commenter

pr-commenter Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-09-03 13:36:15

Comparing candidate commit ad4ab78 in PR branch sabrenner/ai-tool-capping with baseline commit 6601f10 in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2311 metrics, 17 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 max_rss_usage [-28.935MB; +45.454MB] or [-10.229%; +16.068%]

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

  • unstable max_rss_usage [-23.519MB; +6.330MB] or [-10.182%; +2.740%]

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

  • unstable max_rss_usage [-28.238MB; +45.778MB] or [-8.629%; +13.989%]

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

  • unstable max_rss_usage [-23.620MB; +17.292MB] or [-6.339%; +4.641%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-419.405ms; +248.963ms] or [-8.452%; +5.017%]
  • unstable execution_time [-427.658ms; +245.968ms] or [-8.475%; +4.874%]
  • unstable throughput [-82204.248op/s; +141664.985op/s] or [-4.944%; +8.519%]

scenario:encoders-0.4-immediate-flush-20

  • unstable max_rss_usage [-7.299MB; +10.167MB] or [-9.384%; +13.072%]

scenario:id-generate-26

  • unstable execution_time [-83.903ms; +175.116ms] or [-3.530%; +7.367%]

scenario:llmobs-encode-unicode-mixed-20

  • unstable max_rss_usage [-12.477MB; +6.159MB] or [-16.360%; +8.076%]

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

  • unstable cpu_user_time [-154.668ms; +280.281ms] or [-4.111%; +7.450%]
  • unstable execution_time [-157.130ms; +274.544ms] or [-4.148%; +7.248%]
  • unstable throughput [-34724.217op/s; +20627.359op/s] or [-6.540%; +3.885%]

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

  • unstable max_rss_usage [-3.628MB; +12.586MB] or [-2.878%; +9.983%]

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

  • unstable max_rss_usage [-7.083MB; +10.079MB] or [-5.089%; +7.242%]

scenario:plugin-memcached-hashring-24

  • unstable execution_time [-209.550ms; +96.266ms] or [-7.998%; +3.674%]

scenario:test-optimization-large-suite-20

  • unstable max_rss_usage [-5298.553KB; +7142.219KB] or [-6.493%; +8.753%]

@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: 8179aa72b1

ℹ️ 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 thread packages/dd-trace/test/llmobs/plugins/ai/tool-call-id-memory.mjs Outdated
@sabrenner

Copy link
Copy Markdown
Collaborator 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: 684871c53a

ℹ️ 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 thread packages/dd-trace/src/llmobs/plugins/ai/ddTelemetry.js Outdated
@sabrenner

Copy link
Copy Markdown
Collaborator 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: a173007426

ℹ️ 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 thread packages/dd-trace/src/llmobs/plugins/ai/ddTelemetry.js Outdated
@sabrenner

Copy link
Copy Markdown
Collaborator 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: e71ff094a8

ℹ️ 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".

@sabrenner

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: e71ff094a8

ℹ️ 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".

@sabrenner
sabrenner marked this pull request as ready for review September 2, 2026 17:57
@sabrenner
sabrenner requested review from a team as code owners September 2, 2026 17:57
@sabrenner
sabrenner requested a review from bojbrook September 2, 2026 17:57
@sabrenner sabrenner changed the title fix(ai): do not let recorded tools for ai plugin grow unbounded for v5+ fix(ai): resolve unbounded memory growth for the vercel ai sdk llmobs plugin Sep 2, 2026

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

ℹ️ 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 thread packages/dd-trace/test/llmobs/plugins/ai/index.spec.js

@BridgeAR BridgeAR left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Fixing a bug with removing code ❤️

LGTM

@BridgeAR
BridgeAR merged commit 5d059d6 into master Sep 3, 2026
693 checks passed
@BridgeAR
BridgeAR deleted the sabrenner/ai-tool-capping branch September 3, 2026 14:58
dd-octo-sts Bot pushed a commit that referenced this pull request Sep 3, 2026
* cap tool emission to v4

* remove tool ids if they can be resolved without toolCallIdsToName

* regression test

* test more ranges in regression test

* update test implementation, only test v5

* always delete tool calls id to name once consumed

* better availableTools bounding

* stringify raw tool json from destructured components

* array-based tools were never a thing
dd-octo-sts Bot pushed a commit that referenced this pull request Sep 3, 2026
* cap tool emission to v4

* remove tool ids if they can be resolved without toolCallIdsToName

* regression test

* test more ranges in regression test

* update test implementation, only test v5

* always delete tool calls id to name once consumed

* better availableTools bounding

* stringify raw tool json from destructured components

* array-based tools were never a thing
This was referenced Sep 3, 2026
BridgeAR pushed a commit that referenced this pull request Sep 4, 2026
* cap tool emission to v4

* remove tool ids if they can be resolved without toolCallIdsToName

* regression test

* test more ranges in regression test

* update test implementation, only test v5

* always delete tool calls id to name once consumed

* better availableTools bounding

* stringify raw tool json from destructured components

* array-based tools were never a thing
BridgeAR pushed a commit that referenced this pull request Sep 4, 2026
* cap tool emission to v4

* remove tool ids if they can be resolved without toolCallIdsToName

* regression test

* test more ranges in regression test

* update test implementation, only test v5

* always delete tool calls id to name once consumed

* better availableTools bounding

* stringify raw tool json from destructured components

* array-based tools were never a thing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

2 participants