Features
• Auto-Instrumentation for Tracing 🤖
• Tracing for Objective-C 🧓
How to use auto-instrumentation:
Step 1: Set Datadog.Configuration.tracedHosts
to your domains
Step 2: Set tracingEnabled
Step 3: Set Global.sharedTracer
to a Datadog.Tracer
instance
🚀 Your network requests are automatically traced now!
IMPORTANT!
Auto-tracing is disabled by default
If auto-tracing is NOT enabled swizzling does not happen
Enabling auto-tracing by following the steps above results in swizzling URLSession.dataTaskWithURL:completion:
and URLSession.dataTaskWithRequest:completion:
methods.
You can look at how we swizzle methods here and/or what the new implementations of those methods are here and here.