Skip to content

Latest commit

 

History

History

opentelemetry

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Cloud Operations Utils. - OpenTelemetry

An implementation of OpenTelemetry that sends it's data to Cloud Trace.

Limitations:

  • No performance testing,
  • No Metrics implementation.

Usage

  var exporter = Exporter.builder()
          .build();
  var tracerProvider = SdkTracerProvider.builder()
          .addSpanProcessor(BatchSpanProcessor.builder(exporter).build())
          .build();
  OpenTelemetrySdk.builder()
          .setTracerProvider(tracerProvider)
          .buildAndRegisterGlobal();

ℹ️ avoid the SimpleSpanProcessor as this will force persistence when the span completes potentially slowing down processing. Use BatchSpanProcessor instead.

OpenTracing Shim

If you're still limited to using OpenTracing, you can use the Shim to link between the two.