Skip to content

Improve trace view with specialized displays for different span types #40

@a5anka

Description

@a5anka

Summary

The current trace view displays raw span attributes. We need to improve this by showing relevant, structured information based on the type of span being viewed.

Span Types and Key Information

1. LLM Spans

When viewing an LLM call span, display:

  • System prompt
  • Conversation history
  • User prompt
  • Tool list (when using tool-calling APIs)
  • Response

Key metadata: Token counts (input/output), model name

2. Tool Spans

When viewing a tool execution span, display:

  • Tool name
  • Tool input (parameters)
  • Tool output (result)

Key metadata: Execution duration, status

3. Knowledge/RAG Spans

When viewing a retrieval span, display:

  • Query
  • Retrieved context/documents

Key metadata: Number of results, retrieval latency

4. Other Spans

For generic spans, display:

  • Input
  • Output

Key metadata: Duration, status, attributes

References

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions