Skip to content

feat(ai): support vercel ai sdk v7#8949

Merged
sabrenner merged 41 commits into
masterfrom
sabrenner/vercel-ai-sdk-7
Jul 7, 2026
Merged

feat(ai): support vercel ai sdk v7#8949
sabrenner merged 41 commits into
masterfrom
sabrenner/vercel-ai-sdk-7

Conversation

@sabrenner

@sabrenner sabrenner commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Adds support for the latest v7 major release of the Vercel AI SDK. This ships with built-in tracing channel support, which we leverage with tracing plugins for ai:telemetry channel publishes.

We need one bit of manual instrumentation for handling streams, handled in packages/datadog-instrumentations/src/ai.js, which could be version gated if aggregation is handled upstream for the AI SDK down the line.

Motivation

Provide support for the latest Vercel AI SDK package.

Additional Notes

As noted in a comment, there was something weird with one of our testing dependencies that caused our orchestrion rewriter to do something weird in the v7 SDK (even though for tracing we do not use orchestrion for this version, AI Guard still uses it to properly intercept calls in the promise chain). I think the solution applied is OK.

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Jun 16, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 96.46%
Overall Coverage: 96.49% (-0.01%)

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

@dd-octo-sts

dd-octo-sts Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Overall package size

Self size: 6.65 MB
Deduped: 7.31 MB
No deduping: 7.31 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | import-in-the-middle | 3.3.1 | 122.62 kB | 437.94 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

@pr-commenter

pr-commenter Bot commented Jun 16, 2026

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2026-07-07 21:08:28

Comparing candidate commit c232cae in PR branch sabrenner/vercel-ai-sdk-7 with baseline commit 44972dc in branch master.

📊 Benchmarking dashboard

Found 0 performance improvements and 0 performance regressions! Performance is the same for 2312 metrics, 46 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 [-189.981ms; +124.748ms] or [-7.266%; +4.771%]

scenario:appsec-appsec-enabled-26

  • unstable execution_time [-189.818ms; +248.675ms] or [-7.522%; +9.855%]

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

  • unstable execution_time [-158104.692µs; +157649.326µs] or [-5.118%; +5.104%]

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

  • unstable execution_time [-192951.580µs; +193148.380µs] or [-6.637%; +6.643%]

scenario:appsec-control-20

  • unstable execution_time [-168.779ms; +88.551ms] or [-10.577%; +5.549%]

scenario:appsec-control-24

  • unstable execution_time [-115783.788µs; +115903.021µs] or [-9.358%; +9.368%]

scenario:appsec-control-26

  • unstable execution_time [-129.103ms; +132.791ms] or [-10.406%; +10.704%]

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

  • unstable execution_time [-12.984ms; +23.505ms] or [-4.948%; +8.957%]

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

  • unstable execution_time [-12721.709µs; +13980.375µs] or [-5.102%; +5.607%]

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

  • unstable execution_time [-35.100ms; +23.791ms] or [-6.509%; +4.411%]

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

  • unstable execution_time [-38.931ms; +26.177ms] or [-7.236%; +4.865%]

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

  • unstable cpu_user_time [-2844.862ms; +3242.553ms] or [-28.194%; +32.136%]
  • unstable execution_time [-2852.010ms; +3261.050ms] or [-26.341%; +30.118%]
  • unstable instructions [-24.2G instructions; +27.6G instructions] or [-29.102%; +33.233%]
  • unstable max_rss_usage [-12891.867KB; +13904.667KB] or [-7.852%; +8.469%]
  • unstable throughput [-845.326op/s; +750.611op/s] or [-27.096%; +24.060%]

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

  • unstable cpu_user_time [-3289.685ms; +3570.872ms] or [-32.424%; +35.196%]
  • unstable execution_time [-3262.764ms; +3579.142ms] or [-29.973%; +32.879%]
  • unstable instructions [-30.1G instructions; +32.8G instructions] or [-35.386%; +38.535%]
  • unstable max_rss_usage [-10973.360KB; +11158.960KB] or [-6.804%; +6.919%]
  • unstable throughput [-705.824op/s; +663.495op/s] or [-22.874%; +21.502%]

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

  • unstable cpu_user_time [-1937.335ms; +2634.639ms] or [-23.113%; +31.432%]
  • unstable execution_time [-1955.941ms; +2672.262ms] or [-21.551%; +29.444%]
  • unstable instructions [-18.2G instructions; +25.1G instructions] or [-26.314%; +36.315%]
  • unstable max_rss_usage [-7.875MB; +12.460MB] or [-5.014%; +7.934%]
  • unstable throughput [-729.952op/s; +571.498op/s] or [-20.196%; +15.812%]

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

  • unstable cpu_user_time [-3612.390ms; +2489.035ms] or [-34.211%; +23.572%]
  • unstable execution_time [-3676.776ms; +2509.553ms] or [-32.577%; +22.235%]
  • unstable instructions [-32.0G instructions; +22.1G instructions] or [-36.073%; +24.957%]
  • unstable max_rss_usage [-11.771MB; +7.191MB] or [-7.204%; +4.400%]
  • unstable throughput [-565.017op/s; +783.859op/s] or [-18.764%; +26.032%]

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

  • unstable cpu_user_time [-1362.181ms; +614.267ms] or [-15.902%; +7.171%]
  • unstable execution_time [-1370.009ms; +616.765ms] or [-14.751%; +6.641%]
  • unstable instructions [-11.8G instructions; +5.2G instructions] or [-16.774%; +7.480%]
  • unstable throughput [-224.234op/s; +412.195op/s] or [-6.378%; +11.724%]

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

  • unstable cpu_user_time [-1789.691ms; +605.330ms] or [-19.111%; +6.464%]
  • unstable execution_time [-1796.951ms; +631.993ms] or [-17.784%; +6.255%]
  • unstable instructions [-16.0G instructions; +5.4G instructions] or [-20.497%; +6.920%]
  • unstable throughput [-149.130op/s; +396.701op/s] or [-4.593%; +12.219%]

scenario:dogstatsd-with-tags-20

  • unstable cpu_user_time [-440.059ms; +264.115ms] or [-9.162%; +5.499%]
  • unstable execution_time [-442.532ms; +264.443ms] or [-9.070%; +5.420%]
  • unstable throughput [-88519.921op/s; +153912.623op/s] or [-5.144%; +8.944%]

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

  • unstable cpu_usage_percentage [-5.649%; +4.957%]

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

  • unstable cpu_user_time [-741.305ms; +705.471ms] or [-5.778%; +5.499%]
  • unstable execution_time [-748.523ms; +699.948ms] or [-5.707%; +5.337%]
  • unstable throughput [-3.211op/s; +3.456op/s] or [-5.232%; +5.631%]

@codecov

codecov Bot commented Jun 16, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.79487% with 30 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.53%. Comparing base (44972dc) to head (c232cae).

Files with missing lines Patch % Lines
.../dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js 93.66% 23 Missing ⚠️
...ages/dd-trace/src/llmobs/plugins/ai/ddTelemetry.js 98.26% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8949      +/-   ##
==========================================
- Coverage   96.54%   96.53%   -0.01%     
==========================================
  Files         913      915       +2     
  Lines      120452   120979     +527     
  Branches    20874    20642     -232     
==========================================
+ Hits       116286   116791     +505     
- Misses       4166     4188      +22     
Flag Coverage Δ
aiguard 53.57% <100.00%> (-0.05%) ⬇️
aiguard-integration 57.01% <31.30%> (-0.39%) ⬇️
apm-bucket-0 53.79% <100.00%> (-0.05%) ⬇️
apm-bucket-1 58.10% <100.00%> (-0.05%) ⬇️
apm-bucket-2 56.12% <100.00%> (-0.05%) ⬇️
apm-capabilities-tracing 60.29% <26.93%> (-0.22%) ⬇️
apm-integrations-aerospike 52.94% <100.00%> (-0.05%) ⬇️
apm-integrations-confluentinc-kafka-javascript 57.07% <100.00%> (-0.05%) ⬇️
apm-integrations-couchbase 53.26% <100.00%> (-0.05%) ⬇️
apm-integrations-http 57.98% <100.00%> (-0.05%) ⬇️
apm-integrations-kafkajs 57.72% <100.00%> (-0.05%) ⬇️
apm-integrations-next 54.24% <100.00%> (-0.05%) ⬇️
apm-integrations-prisma 54.18% <100.00%> (-0.05%) ⬇️
apm-integrations-tedious 53.04% <100.00%> (-0.04%) ⬇️
appsec 69.04% <100.00%> (-0.04%) ⬇️
appsec-express_fastify_graphql 65.68% <100.00%> (-0.04%) ⬇️
appsec-integration 45.48% <37.25%> (-0.02%) ⬇️
appsec-kafka_ldapjs_lodash 59.13% <100.00%> (-0.10%) ⬇️
appsec-mongodb-core_mongoose_mysql 62.29% <100.00%> (-0.04%) ⬇️
appsec-next 52.86% <100.00%> (-0.04%) ⬇️
appsec-node-serialize_passport_postgres 61.92% <100.00%> (-0.04%) ⬇️
appsec-sourcing_stripe_template 60.27% <100.00%> (-0.04%) ⬇️
debugger 65.69% <100.00%> (-0.04%) ⬇️
instrumentations-bucket-0 48.74% <37.25%> (-0.08%) ⬇️
instrumentations-bucket-1 54.97% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-10 56.65% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-11 48.73% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-12 48.84% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-13 48.67% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-2 49.73% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-3 53.84% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-4 49.16% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-5 53.01% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-6 55.62% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-7 53.61% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-8 54.65% <100.00%> (-0.05%) ⬇️
instrumentations-bucket-9 56.10% <100.00%> (-0.04%) ⬇️
instrumentations-instrumentation-couchbase 48.16% <100.00%> (-0.05%) ⬇️
instrumentations-integration-esbuild 33.92% <37.25%> (-0.01%) ⬇️
llmobs-ai_anthropic_bedrock 57.75% <96.79%> (+0.42%) ⬆️
llmobs-bucket-1 56.81% <100.00%> (-0.04%) ⬇️
llmobs-openai 57.58% <100.00%> (-0.04%) ⬇️
llmobs-sdk 59.99% <100.00%> (-0.05%) ⬇️
llmobs-vertex-ai 54.22% <100.00%> (-0.05%) ⬇️
master-coverage 96.53% <96.79%> (?)
openfeature 54.61% <100.00%> (-0.01%) ⬇️
openfeature-unit 49.82% <100.00%> (-0.05%) ⬇️
platform-core_esbuild_instrumentations-misc 38.38% <37.25%> (-0.04%) ⬇️
platform-integration 62.19% <100.00%> (ø)
platform-shimmer_unit-guardrails_webpack 37.18% <37.25%> (-0.04%) ⬇️
plugins-bucket-0 53.18% <100.00%> (-0.05%) ⬇️
plugins-bucket-1 55.08% <100.00%> (ø)
plugins-bucket-11 56.74% <100.00%> (-0.05%) ⬇️
plugins-bucket-17 56.76% <100.00%> (-0.05%) ⬇️
plugins-bucket-18 57.57% <100.00%> (-0.05%) ⬇️
plugins-bucket-19 57.09% <100.00%> (-0.05%) ⬇️
plugins-bucket-20 59.39% <100.00%> (-0.05%) ⬇️
plugins-bucket-4 53.86% <100.00%> (-0.05%) ⬇️
plugins-bullmq_cassandra_cookie 57.41% <100.00%> (-0.05%) ⬇️
plugins-cookie-parser_crypto_dd-trace-api 52.32% <100.00%> (-0.05%) ⬇️
plugins-fetch_fs_generic-pool 54.47% <100.00%> (-0.05%) ⬇️
plugins-google-cloud-pubsub_grpc_handlebars 59.89% <100.00%> (-0.05%) ⬇️
plugins-hapi_hono_ioredis 55.87% <100.00%> (-0.05%) ⬇️
plugins-jest_knex_langgraph 51.66% <100.00%> (-0.05%) ⬇️
plugins-ldapjs_light-my-request_limitd-client 53.42% <100.00%> (-0.08%) ⬇️
plugins-lodash_mariadb_memcached 54.21% <100.00%> (-0.05%) ⬇️
plugins-mongodb_mongodb-core_mongoose 55.47% <100.00%> (-0.05%) ⬇️
plugins-multer_mysql_mysql2 54.38% <100.00%> (-0.05%) ⬇️
plugins-nats_node-serialize_opensearch 56.07% <100.00%> (-0.05%) ⬇️
plugins-passport-http_pino_postgres 54.75% <100.00%> (-0.05%) ⬇️
plugins-process_pug_redis 53.87% <100.00%> (-0.06%) ⬇️
plugins-undici_url_valkey 54.39% <100.00%> (+0.03%) ⬆️
plugins-vm_winston_ws 55.28% <100.00%> (-0.05%) ⬇️
profiling 58.21% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-aws-sdk 50.66% <100.00%> (-0.04%) ⬇️
serverless-aws-sdk-bedrockruntime 50.68% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-client 51.96% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-dynamodb 51.75% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-eventbridge 46.21% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-kinesis 54.71% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-lambda 52.78% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-s3 51.52% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-serverless-peer-service 54.77% <100.00%> (-0.01%) ⬇️
serverless-aws-sdk-sns 55.48% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-sqs 55.91% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-stepfunctions 51.25% <100.00%> (-0.05%) ⬇️
serverless-aws-sdk-util 48.45% <100.00%> (-0.05%) ⬇️
serverless-bucket-0 55.24% <100.00%> (ø)
serverless-bucket-1 56.02% <100.00%> (-0.05%) ⬇️
test-optimization-cucumber 72.98% <100.00%> (+0.01%) ⬆️
test-optimization-cypress 66.47% <100.00%> (ø)
test-optimization-jest 73.90% <100.00%> (-0.05%) ⬇️
test-optimization-mocha 74.31% <100.00%> (+0.05%) ⬆️
test-optimization-playwright-playwright-atr 61.59% <100.00%> (-0.01%) ⬇️
test-optimization-playwright-playwright-efd 61.78% <100.00%> (ø)
test-optimization-playwright-playwright-final-status 61.73% <100.00%> (-0.01%) ⬇️
test-optimization-playwright-playwright-impacted-tests 61.45% <100.00%> (+0.16%) ⬆️
test-optimization-playwright-playwright-reporting 61.60% <100.00%> (+0.05%) ⬆️
test-optimization-playwright-playwright-test-management 62.27% <100.00%> (-0.12%) ⬇️
test-optimization-playwright-playwright-test-span 61.50% <100.00%> (-0.06%) ⬇️
test-optimization-selenium 60.69% <100.00%> (-0.17%) ⬇️
test-optimization-testopt 59.15% <100.00%> (+0.08%) ⬆️
test-optimization-vitest 72.75% <100.00%> (+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

PR is in a good state now but just needs the official release of the v7 ai sdk for tests to properly run

Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js Outdated
Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js Outdated
Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js Outdated
Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js Outdated
Comment thread packages/datadog-plugin-ai/src/tracing.js
Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js Outdated
Comment thread packages/datadog-plugin-ai/src/tracing.js
Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js
Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js Outdated
Comment thread packages/datadog-instrumentations/src/ai.js
Comment thread packages/datadog-plugin-ai/src/tracing.js Outdated
Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js Outdated
Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js
Yun-Kim
Yun-Kim previously approved these changes Jul 7, 2026

@Yun-Kim Yun-Kim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Small suggestion on handling errors but otherwise LGTM

Comment thread packages/dd-trace/src/llmobs/plugins/ai/vercelTelemetry.js
Yun-Kim
Yun-Kim previously approved these changes Jul 7, 2026
@sabrenner
sabrenner merged commit c3db8f8 into master Jul 7, 2026
654 checks passed
@sabrenner
sabrenner deleted the sabrenner/vercel-ai-sdk-7 branch July 7, 2026 21:36
dd-octo-sts Bot pushed a commit that referenced this pull request Jul 7, 2026
* initial changes

* apm spans for vercel ai sdk v7

* wip - continued

* fix system instructions parsing

* add embedding support

* streamed responses aggregation

* stream cleanup

* clean up channel names

* limit existing test versions

* update plugin IDs

* add tests

* update for official v7 release

* remove hack for beta sdk testing

* remove testing node oldest as require esm is needed for new tests

* re-add forgotten install

* try fix for esm issue in node 26

* fix rewriter

* add needed cassettes

* add skip allowance for missing embedMany telemetry

* non-source code approach for fixing rewriter issues

* remove unnecessary cancel block

* address codex comments

* Apply suggestion from @sabrenner

* test v7 esm test

* source change to guard against double-subscribing

* Apply suggestion from @sabrenner

* address review comments

* address review comments

* add additional result safeguards

* get rid of patching script
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 7, 2026
dd-octo-sts Bot pushed a commit that referenced this pull request Jul 7, 2026
* initial changes

* apm spans for vercel ai sdk v7

* wip - continued

* fix system instructions parsing

* add embedding support

* streamed responses aggregation

* stream cleanup

* clean up channel names

* limit existing test versions

* update plugin IDs

* add tests

* update for official v7 release

* remove hack for beta sdk testing

* remove testing node oldest as require esm is needed for new tests

* re-add forgotten install

* try fix for esm issue in node 26

* fix rewriter

* add needed cassettes

* add skip allowance for missing embedMany telemetry

* non-source code approach for fixing rewriter issues

* remove unnecessary cancel block

* address codex comments

* Apply suggestion from @sabrenner

* test v7 esm test

* source change to guard against double-subscribing

* Apply suggestion from @sabrenner

* address review comments

* address review comments

* add additional result safeguards

* get rid of patching script
@dd-octo-sts dd-octo-sts Bot mentioned this pull request Jul 7, 2026
juan-fernandez pushed a commit that referenced this pull request Jul 8, 2026
* initial changes

* apm spans for vercel ai sdk v7

* wip - continued

* fix system instructions parsing

* add embedding support

* streamed responses aggregation

* stream cleanup

* clean up channel names

* limit existing test versions

* update plugin IDs

* add tests

* update for official v7 release

* remove hack for beta sdk testing

* remove testing node oldest as require esm is needed for new tests

* re-add forgotten install

* try fix for esm issue in node 26

* fix rewriter

* add needed cassettes

* add skip allowance for missing embedMany telemetry

* non-source code approach for fixing rewriter issues

* remove unnecessary cancel block

* address codex comments

* Apply suggestion from @sabrenner

* test v7 esm test

* source change to guard against double-subscribing

* Apply suggestion from @sabrenner

* address review comments

* address review comments

* add additional result safeguards

* get rid of patching script
juan-fernandez pushed a commit that referenced this pull request Jul 8, 2026
* initial changes

* apm spans for vercel ai sdk v7

* wip - continued

* fix system instructions parsing

* add embedding support

* streamed responses aggregation

* stream cleanup

* clean up channel names

* limit existing test versions

* update plugin IDs

* add tests

* update for official v7 release

* remove hack for beta sdk testing

* remove testing node oldest as require esm is needed for new tests

* re-add forgotten install

* try fix for esm issue in node 26

* fix rewriter

* add needed cassettes

* add skip allowance for missing embedMany telemetry

* non-source code approach for fixing rewriter issues

* remove unnecessary cancel block

* address codex comments

* Apply suggestion from @sabrenner

* test v7 esm test

* source change to guard against double-subscribing

* Apply suggestion from @sabrenner

* address review comments

* address review comments

* add additional result safeguards

* get rid of patching script
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