Skip to content

feat(llm-detection): Pass span count to Seer with trace metadata#107735

Merged
nora-shap merged 1 commit intomasterfrom
nora/pass_span_count_to_seer
Feb 6, 2026
Merged

feat(llm-detection): Pass span count to Seer with trace metadata#107735
nora-shap merged 1 commit intomasterfrom
nora/pass_span_count_to_seer

Conversation

@nora-shap
Copy link
Member

  • Add span_count field to trace metadata sent to Seer for LLM issue detection. Will add this to metrics so we can compare span count with token usage
  • Refactor get_valid_trace_ids_by_span_count to return dict[str, int] instead of set[str]
  • Introduce TraceMetadataWithSpanCount model extending TraceMetadata

@nora-shap nora-shap requested review from a team as code owners February 5, 2026 23:04
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Feb 5, 2026
def sample_trace_for_instrumentation_analysis(project: Project) -> TraceMetadata | None:
def sample_trace_for_instrumentation_analysis(
project: Project,
) -> TraceMetadataWithSpanCount | None:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArthurKnaus heads up that I changed the return value for get_project_top_transaction_traces_for_llm_detection, looks like it shouldn't effect your usage at all 👍 👍 👍

@nora-shap nora-shap merged commit bbc023d into master Feb 6, 2026
73 checks passed
@nora-shap nora-shap deleted the nora/pass_span_count_to_seer branch February 6, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants