question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SentrySpan does not have a `data` field

See original GitHub issue

https://develop.sentry.dev/sdk/event-payloads/span/

{
      "data": {
        "type": "xhr",
        "method": "GET",
        "url": "https://api.covid19api.com/summary"
      },
      "description": "GET https://api.covid19api.com/summary",
      "op": "http",
      "parent_span_id": "ae1192f4fbda20ff",
      "span_id": "9f27dcdf0a77661e",
      "start_timestamp": 1623849813.575222,
      "status": "ok",
      "tags": {
        "http.status_code": "200"
      },
      "timestamp": 1623849814.675915,
      "trace_id": "1e5acd8e53254c9db2be50cb40e9ada4"
    }

during ser/deser, we’re losing the data field

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marandanetocommented, Jun 22, 2021

let’s do a quick fix then before we get into #1537 which is gonna take longer, so we don’t lose the data field during round trip ser/deser

1reaction
bruno-garciacommented, Jun 18, 2021

Yeah and given we’re rethinking this API now its’ better we avoid expanding the public API (even though Data could just use Extra as I believe is done on other SDKs).

We plan to change to change serialization (see #1537 ) that will address such cases where we don’t map completely to all other Sentry SDKs but for the time being to address this React Native issue would be nice to just special case Data as @marandaneto suggested

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenTelemetry Support
We want to update the Sentry Span & Transaction with the OpenTelemetry data. This includes the span's operation, description, and resource attributes. The ......
Read more >
Q: Is it possible to decorate http span descriptions (or add ...
I tried to use the breakcrumb hook, but no luck. A custom data field or even modifying the URL does not change the...
Read more >
Event Detail
Any span data that inherits from its root are not. Information about the specific event, such as the event ID, project, duration, time...
Read more >
SentrySpan (sentry-root 6.9.2 API)
Makes annotated method execution or a method execution within a class annotated with SentrySpan executed within running SentryTransaction to get wrapped ...
Read more >
Spring boot Elastic Search: Cannot set @Field Annotations ...
If you do not create the index but just insert some data, ... The @Field annotation you use is correct, we have a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found