Add method to control native tracing
See original GitHub issueCurrently when set a tracesSampleRate
or tracesSampler
.
It’s not sync into native during initNativeSdk.
However if I set autoInitializeNativeSdk
to false. The frame data from RNSentryModule
will be lost because of native sdk isn’t initialized via RNSentryModule.
The only thing I can do for that is using patch-package to have a tracesSampleRate
or tracesSampler
to have both.
I’m not sure this is expected feature or unexpected bug. I leave it as feature request here.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Custom trace events in native code - Android Developers
Custom trace events in native code. bookmark_border. Stay organized with collections Save and categorize content based on your preferences.
Read more >Using method trace - IBM
Method trace is a powerful tool for tracing methods in any Java™ code. Method trace provides a comprehensive and detailed diagnosis of code...
Read more >Method Tracing - Application Performance Management - 华为云
Customize a method tracing rule and start method tracing. On the Method Tracing page, click Add Method Tracing Rule, set parameters, and click ......
Read more >Tutorial: Adding distributed tracing instrumentation to a ...
We need a few pieces of code to send our first span (the root span) and thereby start a trace. First, you'll want...
Read more >Adding Tracing to Your Distributed Cloud Native Microservices
Starting with demo2 , create a controller that returns a “favorite number” for a user based on their ID. We use the special...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marandaneto Yeah but that would not add frame data into my JavaScript transaction. In order to have both tracesSampleRate on native and react-native. I need to disable JS auto init native SDK. Init native SDK myself. then use the alternative I provide about to enable frame rate data in react-native.
That’s exactly what I’m looking for.
frameMetricsAggregator
probably shouldn’t be part ofnativeInit
.Relates to https://github.com/getsentry/sentry-cocoa/issues/2262