-
public final class RequestTracingStateFor internal usage only.
Holds the tracing state for a network request. This state is created by com.datadog.android.trace.internal.ApmNetworkInstrumentation.onRequest and should be passed to com.datadog.android.trace.internal.ApmNetworkInstrumentation.onResponseSucceeded or com.datadog.android.trace.internal.ApmNetworkInstrumentation.onResponseFailed.
This class allows binding RUM to APM.
-
-
Field Summary
Fields Modifier and Type Field Description private final HttpRequestInfoBuilderrequestInfoBuilderprivate final BooleanisSampledprivate final DatadogSpanspanprivate final FloatsampleRate
-
Constructor Summary
Constructors Constructor Description RequestTracingState(HttpRequestInfoBuilder requestInfoBuilder, Boolean isSampled, DatadogSpan span, Float sampleRate)
-
Method Summary
Modifier and Type Method Description final HttpRequestInfoBuildergetRequestInfoBuilder()final BooleangetIsSampled()final DatadogSpangetSpan()final FloatgetSampleRate()final HttpRequestInfocreateRequestInfo()Returns the HttpRequestInfo with any modifications applied during tracing setup. -
-
Method Detail
-
getRequestInfoBuilder
final HttpRequestInfoBuilder getRequestInfoBuilder()
-
getIsSampled
final Boolean getIsSampled()
-
getSpan
final DatadogSpan getSpan()
-
getSampleRate
final Float getSampleRate()
-
createRequestInfo
final HttpRequestInfo createRequestInfo()
Returns the HttpRequestInfo with any modifications applied during tracing setup. This includes tracing headers that were added to the original request.
-
-
-
-