Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 908 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 908 Bytes

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.