-
public final class OpenObserveInterceptor.Builder extends TracingInterceptor.BaseBuilder<OpenObserveInterceptor, OpenObserveInterceptor.Builder>
A Builder for the OpenObserveInterceptor.
-
-
Constructor Summary
Constructors Constructor Description OpenObserveInterceptor.Builder(List<String> tracedHosts)OpenObserveInterceptor.Builder(Map<String, Set<TracingHeaderType>> tracedHostsWithHeaderType)
-
Method Summary
Modifier and Type Method Description OpenObserveInterceptorbuild()Builds the OpenObserveInterceptor. final OpenObserveInterceptor.BuildersetRumResourceAttributesProvider(RumResourceAttributesProvider rumResourceAttributesProvider)Sets the RumResourceAttributesProvider to use to provide custom attributes to the RUM. final OpenObserveInterceptor.BuildertrackResourceHeaders(ResourceHeadersExtractor extractor)Enables capturing HTTP request and response headers in RUM Resource events. -
Methods inherited from class com.openobserve.android.okhttp.OpenObserveInterceptor.Builder
set404ResourcesRedacted, setSdkInstanceName, setTraceContextInjection, 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
OpenObserveInterceptor build()
Builds the OpenObserveInterceptor.
-
setRumResourceAttributesProvider
final OpenObserveInterceptor.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.
-
trackResourceHeaders
final OpenObserveInterceptor.Builder trackResourceHeaders(ResourceHeadersExtractor extractor)
Enables capturing HTTP request and response headers in RUM Resource events.
Sensitive headers matching the ResourceHeadersExtractor.SECURITY_PATTERN are automatically filtered out, even if specified in the extractor.
- Parameters:
extractor- the ResourceHeadersExtractor specifying which headers to capture.
-
-
-
-