#Javascript Browser SDK Profiling

12 messages · Page 1 of 1 (latest)

wispy crystal
#

Hey,
I tried to integrate browser SDK to my ExtJs javascript application. I am able to achieve performance of my application.
But problem occuring is it is not showing any profile data.Profile section is still showing empty and I am not able to get any data.
I already added js-profiling as response header in all my api request still not luck.

Can someone please help here.

lost remnant
#

did you also set a profilesSampleRate: 1.0,

wispy crystal
#

Hi @lost remnant
Yes, profileSampleRate is set to 1.0..but I want to confirm what should be exact property name for javascript sdk.!?

lost remnant
#

yeah it's that one

#

what is the output if you put debug: true

#

?

wispy crystal
#

No logs related to profiler in chrome console
Yes, there are many logs with tracing and span transaction

lost remnant
#

did you also set tracesSampleRate: 1.0,?

wispy crystal
#

Here is my sentry configuration

            Sentry.init({
                dsn:"https://[email protected]/vakue",
                debug: true,
                autoSessionTracking: true,
                autoPerformance: true,
                release:"June 24.6.0",
                enableTracing:true,
                initialScope: {
                    tags: { environment:"Sys-local", "applicationVersion":"24.6.0"   },
                    user: {
                        id: 14, email: "anand.maurya", name: "anand.maurya", username: "anand maurya", data: {
                            timezone: "America/Los_Angeles",
                            accountName:"Product",
                            tracingData:"29%"  
                        }
                    },
                },
                profilesSampleRate: 1.0,
               
                tracePropagationTargets:  ['localhost', /^\//],
                // Performance Monitoring
                tracesSampleRate: 1.0, // Capture 100% of the transactions
                // Session Replay
                sendDefaultPii: true,
                replaysSessionSampleRate: 0.1,
                replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
                environment:"Sys-Local",
                integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()]
            });
        });

Let me know if anything I am Missing here

old sinew
#

@wispy crystal it seems like the integrations array does contain the browser profiling integration. You need to add that after browserTracing by calling Sentry.browserProfilingIntegration(). If you follow the documentation here https://docs.sentry.io/platforms/javascript/profiling/#step-3-configure-the-javascript-sdk you should start seeing profiles

Collect & view performance insights for JavaScript programs with Sentry’s JavaScript Profiling integration. Get started with browser profiling here.

wispy crystal
#

Hi Jonaz,
Browser Javascript SDK with script loader is not showing profile function itself in the library.

Yes, browserProfile is available with library and framework like React and Vue,etc.

But for browser SDK, we are unable to get this..have a look in the picture itself