Class ServerTracingDynamicFeature.Builder

    • Constructor Detail

      • Builder

        public Builder​(io.opentracing.Tracer tracer)
    • Method Detail

      • withPriority

        public ServerTracingDynamicFeature.Builder withPriority​(int priority)
        Parameters:
        priority - the overriding priority for the registered component. Default is Priorities.HEADER_DECORATOR
        Returns:
        builder
        See Also:
        Priorities
      • withSerializationPriority

        public ServerTracingDynamicFeature.Builder withSerializationPriority​(int serializationPriority)
        Parameters:
        serializationPriority - the overriding priority for the registered component. Default is Priorities.ENTITY_CODER
        Returns:
        builder
        See Also:
        Priorities
      • withTraceSerialization

        public ServerTracingDynamicFeature.Builder withTraceSerialization​(boolean traceSerialization)
        Parameters:
        traceSerialization - whether to trace serialization
        Returns:
        builder
      • withJoinExistingActiveSpan

        public ServerTracingDynamicFeature.Builder withJoinExistingActiveSpan​(boolean joinExistingActiveSpan)
        Parameters:
        joinExistingActiveSpan - If true, any active span on the on the current thread will be used as a parent span. If false, parent span will be extracted from HTTP headers. This feature can be used when chaining spans from lower instrumentation layers e.g. servlet instrumentation. Default is false.
        Returns:
        builder
      • build

        public ServerTracingDynamicFeature build()
        Returns:
        server tracing dynamic feature. This feature should be manually registered to Application