Skip to content

Map Mastra classifier_evaluation spans to gen_ai.decide #25252

Closed

Description

@andreiborza

Follow getsentry/sentry-conventions#696: gen_ai.evaluate is deprecated in favor of gen_ai.decide.

The Mastra exporter maps classifier_evaluation spans to op gen_ai.evaluate and gen_ai.operation.name: evaluate (#25031).

Target span

  • Op: gen_ai.decide (was gen_ai.evaluate)
  • gen_ai.operation.name: decide (was evaluate)
  • Name: decide <model> if the span name comes from the operation name.
  • No other change. gen_ai.input.messages / gen_ai.output.messages keep type: 'evaluation'.

Scope

  • packages/server-utils/src/ai/mastra/constants.ts (classifier_evaluation mapping).
  • Update the tests: unit test test/ai/lib/tracing/mastra-exporter.test.ts; node-integration-tests suite mastra; e2e app node-mastra (classifier.test.ts).

Activity

  1. linear-code commented on Oct 12, 2026

    @linear-code
  2. added a commit that references this issue on Oct 12, 2026
    9f7cbad
  3. github-actions commented on Oct 12, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #25281, which was included in the 11.7.0 release.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions