Commit e541815
feat(core)!: Remove
Removes the `enableTruncation` integration option and the gen_ai message
text-truncation machinery. Now that gen_ai spans always ride the v2 span
path (far larger size limits than legacy transactions), the byte-limit
cropping and "keep only the last message" reduction is dead weight.
Inline media stripping is kept and is now unconditional: previously media
was only stripped on the truncation path, so with truncation off inline
base64 could leak into span attributes for openai/anthropic/google-genai/
vercel-ai/workers-ai. `getGenAiMessagesJsonString` now always strips media
before serializing, keeping all messages.
Media-stripping logic is consolidated into `mediaStripping.ts`;
`messageTruncation.ts` is deleted. Truncation-specific test scenarios and
instruments are removed; image-stripping tests are re-pointed at the
default recording instruments, and full span-streaming coverage is kept
via non-truncation streaming tests.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>enableTruncation flag and gen_ai text truncation1 parent 4fa02f8 commit e541815
74 files changed
Lines changed: 315 additions & 3131 deletions
File tree
- dev-packages/node-integration-tests/suites/tracing
- anthropic
- google-genai
- langchain
- v1
- langgraph
- openai
- truncation
- vercelai
- span-streaming-v4
- packages
- cloudflare/src/integrations/tracing
- core
- src
- tracing
- ai
- anthropic-ai
- google-genai
- langchain
- langgraph
- openai
- vercel-ai
- workers-ai
- test/lib
- tracing
- ai
- utils
- server-utils/src
- integrations/tracing-channel
- vercel-ai
- vercel-edge/src/integrations/tracing
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 0 additions & 18 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
Lines changed: 0 additions & 75 deletions
This file was deleted.
Lines changed: 0 additions & 64 deletions
This file was deleted.
0 commit comments