I've found out that X-NewRelic-ID
header is not present in my okhttp calls.
Is there any library that provides such interceptors or do I need to implement them manually?
In contrary - iOS version provides such functionality (automatically registers appropriate interceptors)
I wonder if newrelic team provides Android specific interceptors.
It turns out that everything is inside New Relic library. The only thing user needs to do it to enable relevant feature flag:
FeatureFlag.enableFeature(FeatureFlag.DistributedTracing)
Under the covers New Relic uses reflection to find out that OkHttp (as well as other common http clients) is present on the classpath and then wraps appropriate methods and adds its http headers.
It's real shame that such things are not mentioned nor explained in the documentation.