Class TracingInterceptor

    • Constructor Detail

      • TracingInterceptor

        public TracingInterceptor​(IInternalAccess component)
        Create a new interceptor.
    • Method Detail

      • execute

        public IFuture<java.lang.Void> execute​(ServiceInvocationContext sic)
        Execute the interceptor.
        Parameters:
        context - The invocation context.
      • createSpan

        protected io.opentelemetry.api.trace.Span createSpan​(io.opentelemetry.api.trace.Tracer tracer,
                                                             java.lang.String invoked,
                                                             java.lang.reflect.Method method,
                                                             IComponentIdentifier caller,
                                                             java.lang.Boolean system,
                                                             io.opentelemetry.context.Context parent)
      • setResource

        protected void setResource​(io.opentelemetry.api.trace.Span span,
                                   IComponentIdentifier cid)
      • getOrCreateResource

        protected io.opentelemetry.sdk.resources.Resource getOrCreateResource​(IComponentIdentifier cid)
        Add cid to pid mapping.
        Parameters:
        cid - The component id.
        Returns:
        pid The process id.