Replies: 3 comments 1 reply
-
|
From the current RN wrapper, I do not think there is a supported config that means “collect resources only for Two separate things are happening:
That also explains why your JS So today the practical options look like:
For this specific Mapbox case, I would treat |
Beta Was this translation helpful? Give feedback.
-
|
Hi @PSniezak and @krotname, thanks for reaching out. Indeed this is a known gap in the current implementation. With the introduction of the automatic NSURL request tracking by The easiest and cleanest approach for now is to expose a toggle to disable the native tracking, but that may be too extreme and can negate the benefits of the automatic tracking on many fronts (such as tracking images rendered and loaded with FastImage, for example). Exposing a specific mapper just to be run at the native level is another option, but we have not yet discussed how exactly would that look. We'll be having an internal discussion about potential ways to improve it this week. We'll come back to you as soon as we have more details on the proposed solution. Thanks for your support 🙇 |
Beta Was this translation helpful? Give feedback.
-
|
Hi @krotname and @sbarrio, thanks to both of you for the quick and documented replies 🙏 @krotname, we did go with something quite similar to your first recommendation: for now, we are using the retention filters to filter out sessions containing these errors ( It is not perfect as a session with another error would still show these iOS specific errors, but it does filter out the vast majority of them. It also means that we can't really use the errors specific metrics for now, as they're computed on all of the ingested sessions. @sbarrio, it's great to here thanks a lot. I do agree that an on/off toggle would be too agressive. I'm leaving this discussion open if that's okay and will edit my main comment to reference both of you. Thanks again! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there!
Since we added the Datadog SDK and enabled
trackResourcesandfirstPartyHosts(for our internal hosts only), our real errors have been buried under the iOS URLSession instrumentation. As an example, we use@rnmapbox/mapswhich cancels in-flight requests when the user pan/zoom on the map. These are harmless but account for 90% of our errors if we also count the rest of this iOS instrumentation with them.I would like to clarify that these are session's resource errors, not errors from error tracking. The
error.source_typeisiosanderror.typeis mostlyNSURLErrorDomain - -999, neither theerrorEventMappernor theresourceEventMappersees them. So, for my question:Is there a supported config to drop non-first-party network events, or to scope auto-instrumentation to
firstPartyHostsonly? It may be related to #774.Happy to share more details if useful, thanks!
Edit 1 (23/06/2026):
Beta Was this translation helpful? Give feedback.
All reactions