-
public final class DatadogInterceptor.Builder extends TracingInterceptor.BaseBuilder<DatadogInterceptor, DatadogInterceptor.Builder>
A Builder for the DatadogInterceptor.
-
-
Constructor Summary
Constructors Constructor Description DatadogInterceptor.Builder(List<String> tracedHosts)DatadogInterceptor.Builder(Map<String, Set<TracingHeaderType>> tracedHostsWithHeaderType)
-
Method Summary
Modifier and Type Method Description DatadogInterceptorbuild()Builds the DatadogInterceptor. final DatadogInterceptor.BuildersetRumResourceAttributesProvider(RumResourceAttributesProvider rumResourceAttributesProvider)Sets the RumResourceAttributesProvider to use to provide custom attributes to the RUM. -
Methods inherited from class com.datadog.android.okhttp.DatadogInterceptor.Builder
set404ResourcesRedacted, setSdkInstanceName, setTraceContextInjection, setTraceSampleRate, setTraceSampler, setTracedRequestListener -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
build
DatadogInterceptor build()
Builds the DatadogInterceptor.
-
setRumResourceAttributesProvider
final DatadogInterceptor.Builder setRumResourceAttributesProvider(RumResourceAttributesProvider rumResourceAttributesProvider)
Sets the RumResourceAttributesProvider to use to provide custom attributes to the RUM. By default it won't attach any custom attributes.
- Parameters:
rumResourceAttributesProvider- the RumResourceAttributesProvider to use.
-
-
-
-