question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add method to control native tracing

See original GitHub issue

Currently 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:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wbinarytreecommented, Jul 20, 2022

@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.

Maybe we should init the frameMetricsAggregator variable even if autoInitializeNativeSdk is disabled

That’s exactly what I’m looking for. frameMetricsAggregator probably shouldn’t be part of nativeInit.

0reactions
marandanetocommented, Oct 5, 2022
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found