Skip to content

getTraceData does not exist on @sentry/react or @sentry/browser #16506

@Jaakkonen

Description

@Jaakkonen

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

9.15.0

Framework Version

React 19.0.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

Try to import getTraceData from @sentry/react or @sentry/browser like described in https://docs.sentry.io/platforms/javascript/tracing/distributed-tracing/ docs. Find out that it's not re-exported from @sentry/core

Steps to Reproduce

Try to import it

Expected Result

The documentation to say to use @sentry/core (and not just use Sentry which I understand to mean either import * as Sentry from '@sentry/react' OR import * as Sentry from '@sentry/browser) or to re-export this feature from all of the platform/framework packages.

Actual Result

getTraceData not re-exported by react/browser packages

Metadata

Metadata

Assignees

No one assigned
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions