An implementation of OpenTelemetry that sends it's data to Cloud Trace.
Limitations:
- No performance testing,
- No Metrics implementation.
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. UseBatchSpanProcessor
instead.
If you're still limited to using OpenTracing, you can use the Shim to link between the two.