Skip to content

Distribution tracing is not working in V8.3.0 in Javascript browser CDN bundle #12222

Closed as not planned
@an-and10

Description

@an-and10

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

Sentry Browser CDN bundle

SDK Version

8.3.0

Framework Version

Extjs Javascript

Link to Sentry event

https://highradius-is.sentry.io/performance/trace/d4ca3de29b6f40479bd9c975e3d3ba68/?node=txn-aaa64f9318c74c3293da903ccf068c21&statsPeriod=24h&timestamp=1716726384

SDK Setup

Bundle Used:

<script src="https://browser.sentry-cdn.com/8.3.0/bundle.tracing.replay.min.js"></script>
<script src="https://browser.sentry-cdn.com/8.3.0/browserprofiling.min.js"></script>
Sentry.init({
  dsn: 'https://[email protected]/4507288901058560',
  debug: true,
  autoSessionTracking: true,
  autoPerformance: true,
  release: 'June 2024',
  enableTracing: true,
  environment: 'local',
  initialScope: {
    user: {
      username: 'sentry poc',
      id: 'sentry.poc',
      name: 'sentry poc',
    },
  },
  profilesSampleRate: 1.0,
  tracePropagationTargets: ['localhost', /^\/(?!\/)/],
  tracesSampleRate: 1.0, // Capture 100% of the transactions
  sendDefaultPii: true,
  enableLongTask: true,
  parentSpanIsAlwaysRootSpan: false,
  replaysSessionSampleRate: 0.1,
  replaysOnErrorSampleRate: 1.0,
  integrations: [
    Sentry.browserTracingIntegration({
      enableInp: true,
      instrumentNavigation: false,
      instrumentPageLoad: true,
      enableHTTPTimings: true,
    }),
    Sentry.replayIntegration({
      maskAllText: false,
      blockAllMedia: false,
      networkDetailAllowUrls: [window.location.origin],
    }),
    Sentry.browserProfilingIntegration(),
  ],
});

Steps to Reproduce

Previously in V7.116.0, distribution tracing was working and we could see the distribution of our resources in transaction performance Sentry UI.
We migrated to v8.3.0 due to the profiling feature as it was not available in the older version. In the Older version, we were having custom instrumentation with startTransaction to start any user activity.
Now, in the new version, somehow we can get the same kind of behavior using startSpanManual, but "operation duration" is not showing any value and its respective child and parent span is also not capturing any data in Sentry UI.

Expected Result

Previous data in Sentry UI was happening automatically and no major action was required to capture any operations. It was happening under the hood.

We are looking for the same kind of data capturing that was before in V7.116.0.

Before Result
image

Now in V8.3.0
image

Actual Result

Expecting to provide if we need to add any config to get this done.

Looking to get the same result as before

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions