Class OpencensusTracerFactory

    • Constructor Detail

      • OpencensusTracerFactory

        public OpencensusTracerFactory()
        Instantiates a new instance capturing the Tracer in Tracing.getTracer.
      • OpencensusTracerFactory

        public OpencensusTracerFactory​(Map<String,​String> spanAttributes)
        Instantiates a new instance capturing the Tracer in Tracing.getTracer. It will also override the service name of the grpc stub with a custom client name. This is useful disambiguate spans created outer manual written wrappers and around generated gapic spans.
        Parameters:
        spanAttributes - the attributes to stamp on every span. Should include things like library version.