Content-Length: 291112 | pFad | http://github.com/getsentry/sentry-javascript/issues/16773

E9 Implement `profilesSampler` for browser SDKs · Issue #16773 · getsentry/sentry-javascript · GitHub
Skip to content

Implement profilesSampler for browser SDKs #16773

Open
@PankajSati-apl

Description

@PankajSati-apl

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

9.33.0

Framework Version

18.3.1

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Sentry's official documentation mentions profilesSampler as a config exposed in Sentry.init. However, the method doesn't work in @sentry/react package

import * as Sentry from "@sentry/react";

Sentry.init({
  dsn: "https://bf0f3b5bb0b64319886e462cbd93f738@o101058.ingest.us.sentry.io/1819200",
  integrations: [
    // Add browser profiling integration to the list of integrations
    Sentry.browserTracingIntegration(),
    Sentry.browserProfilingIntegration(),
  ],
  tracesSampleRate: 1.0,

  // This function will be called for every sampled span
  // to determine if it should be profiled
  profilesSampler: (samplingContext) => {
    return 1.0;
  },
});

Expected Result

profilesSampler should work

Actual Result

profilesSampler does not work.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/getsentry/sentry-javascript/issues/16773

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy