public class OkHttpParser
extends java.lang.Object
Be careful when customizing, particularly not to add too much data. Large spans (ex
large orders of kilobytes) can be problematic and/or dropped. Also, be careful that span names
have low cardinality (ex no embedded variables). Finally, prefer names in TraceKeys where
possible, so that lookup keys are coherent.
For more information, look at our instrumentation
docs
| Constructor | Description |
|---|---|
OkHttpParser() |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
applicationSpanName(okhttp3.Request request) |
Returns the
Request.tag() or the http method when absent. |
java.util.List<com.github.kristofa.brave.KeyValueAnnotation> |
networkRequestTags(okhttp3.Request request) |
Returns the
TraceKeys.HTTP_URL |
java.util.List<com.github.kristofa.brave.KeyValueAnnotation> |
networkResponseTags(okhttp3.Response response) |
Returns the
TraceKeys.HTTP_STATUS_CODE if unsuccessful |
java.lang.String |
networkSpanName(okhttp3.Request request) |
Returns the http method.
|
public java.lang.String applicationSpanName(okhttp3.Request request)
Request.tag() or the http method when absent.public java.lang.String networkSpanName(okhttp3.Request request)
public java.util.List<com.github.kristofa.brave.KeyValueAnnotation> networkRequestTags(okhttp3.Request request)
TraceKeys.HTTP_URLpublic java.util.List<com.github.kristofa.brave.KeyValueAnnotation> networkResponseTags(okhttp3.Response response)
TraceKeys.HTTP_STATUS_CODE if unsuccessfulCopyright © 2018 OpenZipkin. All rights reserved.