openllmetry-js icon indicating copy to clipboard operation
openllmetry-js copied to clipboard

feat(vercel): add gen.ai.input.messages + gen.ai.output.messages

Open nina-kollman opened this issue 3 months ago • 1 comments

[!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-conventions to ^1.37.0 in multiple package.json files.
  • Misc:
    • Note duplicate test block insertion in instrumentation.test.ts.

This description was created by Ellipsis 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.

nina-kollman avatar Sep 09 '25 15:09 nina-kollman