Skip to content

feat: streaming span events #1051

@ajbozarth

Description

@ajbozarth

Background

Retired sub-issue #476 proposed span events for streaming. @planetf1's open work on streaming event types (#902 / #1013, PRs #958 and #942) is the right place for this to land — the bridge between Mellea's internal streaming events and OTel span events.

Scope

Pending @planetf1's streaming-events design, add span events on backend generation spans for:

Optionally surface MELLEA_TRACES_STREAM_SAMPLE_RATE for chunk sampling.

Phase & dependencies

Phase 2 (coverage). Depends on Phase 1 (#1045, #1046, #1047). Coordinates with #902 / PR #958 — this issue is the consumer side; @planetf1's work is the producer side. Can proceed in parallel with {{NEW-D}}, {{NEW-E}}, {{NEW-F}}, {{NEW-H}}.

Acceptance criteria

  • Streaming generations emit span events for TTFB and completion.
  • Chunk-level events are opt-in and rate-controllable.
  • Coordinated with @planetf1's streaming-events work.

Parent epic: #444

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions