Skip to main content

Why is additional data showing on spans but not on transactions?

Issue

In a trace, custom data (attributes or additional data) appears on individual spans but not on the transaction. This is common with JavaScript SDK v8 and OpenTelemetry-based Node SDKs.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • Tracing

  • JavaScript SDKs

Resolution

Sentry stores and displays that data on spans, not on the transaction.

In JavaScript SDK v8 and later (and recent v7 Node SDKs), tracing is span-based and OpenTelemetry-backed. Transactions are no longer a separate SDK object. The UI may still group spans under a transaction, but attributes stay on the span you set them on. They are not copied to the root span.

  1. Open the trace waterfall and select the span that should have the data. Check that span’s attributes.

  2. Query the data in Explore → Traces, not on the transaction summary.

  3. Attach new data with span.setAttribute (or attributes on Sentry.startSpan). Do not expect setExtra / additional data on the transaction.

See the v8 tracing API changes for the span model.

Did this answer your question?