Splunk Observability Cloud

Is there support for W3C Trace Context (traceparent) propagation for iOS?

sloshburch
Splunk Employee
Splunk Employee

(Asking on behalf of someone else so doing my best to parlay the question)

It looks like Android supports W3C Trace Context propagation via its OkHttp and Volley wrappers, which is great. Unfortunately, we don't see this same support in the iOS SDK. We're relying on the traceparent header for sampling decision propagation, so this lack of support means API requests coming from our iOS client often go untraced in APM. Is this a known issue or something that we've missed as a configuration option? We've explored the iOS SDK repository thoroughly but weren't able to figure it out.

To clarify, both Android and iOS SDK successfully read the Server-Timing header from an API call's response and associate it with the client-side spans. The issue is that iOS doesn't include the traceparent header on the request, which is what tells the server to trace the operation in the first place. We would expect that to work since it's core to how OpenTelemetry is supposed to work and does work on the web and Android.

Standardized context propagation via W3C Trace Context, which includes the sampling decision, is one of the main advantages of using OpenTelemetry. We would need to update all of our backend services with custom logic to understand a novel propagation system, which is a non-starter.

Labels (1)
0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...