Skip to content

JS Anthropic AI SDK - gen_ai.request.messages attribute incomplete #18331

Closed

Description

@linear
    Error: Fixture validation failed:
    llm_call (gen_ai.messages):
       gen_ai.request.messages: mismatch (
         expected: {"type":"json_array","min_length":2,"items_have":["role","content"]},
         got: "[{\"role\":\"user\",\"content\":\"What is 69 + 96?\"}]"
       )
  "dependencies": {
    "@anthropic-ai/sdk": "0.68.0",
    "@sentry/node": "10.26.0",

The issue is that it's not adding the system prompt to the gen_ai.messages span.

Activity

  1. linear commented on Nov 25, 2025

    @linear
    Author
  2. added
    javascriptPull requests that update javascript code
    on Nov 25, 2025
  3. added 2 commits that reference this issue on Nov 25, 2025
    de0a4f9
    1b0d784
  4. added a commit that references this issue on Dec 1, 2025
    2318648
  5. self-assigned this
    on Dec 1, 2025
  6. added 3 commits that reference this issue on Dec 3, 2025
    a606a21
    ad5a87a
    0ceea43
  7. added a commit that references this issue on Dec 3, 2025
    b6eb205
  8. github-actions commented on Dec 4, 2025

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #18332, which was included in the 10.29.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions