Use OpenTelemetry extensions for OkHttp
developThe dd-sdk-android-okhttp-otel extension allows you to integrate Datadog with OkHttp using OpenTelemetry.
Depending on your goal, follow these paths:
Automatic Network Tracking: To automatically track network requests made by the
OkHttplibrary for Real User Monitoring (RUM), refer to the Datadog SDK instrumentation for OkHttp documentation.Distributed Tracing (Parent Spans): To add a parent span to network requests made by the
OkHttplibrary (enabling distributed tracing), refer to the Datadog SDK Android for OpenTelemetry documentation.