public static void createWithSender ( final ThriftSender sender , final String serviceName ) { synchronized ( monitor ) { checkState ( handler == null , "Jaeger exporter is already registered." ) ; final SpanExporter . Handler newHandler = newHandlerWithSender ( sender , serviceName ) ; JaegerTraceExporter . handler = newHandler ; register ( Tracing . getExportComponent ( ) . getSpanExporter ( ) , newHandler ) ; } }
Creates and registers the Jaeger Trace exporter to the OpenCensus library using the provided HttpSender . Only one Jaeger exporter can be registered at any point .