Package 

Class DatadogInterceptor.Builder

    • Constructor Detail

      • DatadogInterceptor.Builder

        DatadogInterceptor.Builder(List<String> tracedHosts)
      • DatadogInterceptor.Builder

        DatadogInterceptor.Builder(Map<String, Set<TracingHeaderType>> tracedHostsWithHeaderType)
        Parameters:
        tracedHostsWithHeaderType - a list of all the hosts and header types that you want to be automatically tracked by this interceptor.
    • Method Detail

      • 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.
      • trackResourceHeaders

         final DatadogInterceptor.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.