Skip to content

Stop tracing messages.countTokens in Anthropic AI integration #23148

Description

@nicohrubec

We only want to trace model invocations, tool calls, and agent invocations. messages.countTokens is a pre-flight token count with no model inference, so we should stop emitting a span for it.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions