Skip to content

Ability to ingest and display span events #721

Closed

Description

@BYK

Sample envelope:

{"sent_at":"2025-03-04T21:23:54.940Z","trace":{"environment":"development","release":"spotlight@undefined","public_key":"51bcd92dba1128934afd1c5726c84442","trace_id":"b99011b43059c992d5dab0b8281f519b","sample_rate":"1","transaction":"Spotlight CLI","sampled":"true"}}
{"type":"span"}
{"data":{"sentry.origin":"auto.http.browser.inp","sentry.op":"ui.interaction.click","sentry.source":"custom","release":"[email protected]","environment":"production","replay_id":"530121597fe04f93a4ebf23b55748e00","transaction":"/errors","user_agent.original":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0","sentry.exclusive_time":5576,"sentry.sample_rate":1},"description":"body > div#sentry-spotlight-root","op":"ui.interaction.click","parent_span_id":"8044e7503e635f42","span_id":"ae2cb2899baf38a4","start_timestamp":1741123427.9582,"timestamp":1741123433.5342,"trace_id":"b99011b43059c992d5dab0b8281f519b","origin":"auto.http.browser.inp","exclusive_time":5576,"measurements":{"inp":{"value":5576,"unit":"millisecond"}},"is_segment":true,"segment_id":"ae2cb2899baf38a4"}

Conversion logic: https://github.com/getsentry/relay/blob/16cb03c964b677e65389aa8077054e70d2203c26/relay-spans/src/span.rs#L85-L228

Activity

  1. self-assigned this
    on Mar 4, 2025
  2. BYK commented on Mar 5, 2025

    @BYK
    MemberAuthor

    Quoting @AbhiPrasad here:

    so the only instance of standalone span envelopes in the js sdk is in browser sdks with interaction spans
    and these were only introduced so that we could make INP work 😅
    more standalone spans will come, but we’ll communicate when they do. This will be part of a wider span streaming initiative.
    when we’re further along span streaming work, we’ll probably have to move this transform into develop or similar

    Given all this, I have no current interest in converting that Rust code into JS as it may also change. I'll just fix the code where it did not expect event.type === 'span' and we should be good for now.

  3. added 2 commits that reference this issue on Mar 5, 2025
    1c03c4e
    cab7b75
  4. added a commit that references this issue on May 30, 2025
    f731d91
  5. added a commit that references this issue on Jun 3, 2025
    eea23af
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Package: OverlayType: Enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions