openllmetry-js
openllmetry-js copied to clipboard
feat(vercel): add gen.ai.input.messages + gen.ai.output.messages
[!IMPORTANT] Add standardized GenAI input/output message attributes and update tests and dependencies for improved AI SDK functionality.
- Features:
- Add standardized GenAI input/output message attributes in
ai-sdk-transformations.ts.- Normalize prompts, roles, text parts, and tool-call outputs across SDKs.
- Tests:
- Add tests for GenAI input/output message generation in
instrumentation.test.ts.- Remove older AI SDK integration test suite.
- Dependencies:
- Bump
@opentelemetry/semantic-conventionsto^1.37.0in multiplepackage.jsonfiles.- Misc:
- Note duplicate test block insertion in
instrumentation.test.ts.This description was created by
for 43de0989ce98e8a90c705b6687bc6859cd804a27. You can customize this summary. It will automatically update as commits are pushed.
Summary by CodeRabbit
-
New Features
- Introduced standardized GenAI input/output message attributes and normalized roles, text parts, and tool-call outputs across SDKs and instrumentations.
-
Tests
- Added tests and HAR recordings validating GenAI input/output message generation for chat completions.
- Removed older unit and end-to-end AI SDK test suites and associated integration recordings.
-
Chores
- Bumped @opentelemetry/semantic-conventions to ^1.37.0 across packages and added it to AI semantic conventions.