obsi_exporter_otlp 1.0.0
obsi_exporter_otlp: ^1.0.0 copied to clipboard
Production OTLP HTTP/Protobuf and HTTP/JSON exporters for Obsi.
example/obsi_exporter_otlp_example.dart
import 'package:obsi/obsi.dart';
import 'package:obsi_exporter_otlp/obsi_exporter_otlp.dart';
Future<void> main() async {
final provider = TracerProvider(
processor: BatchSpanProcessor(OtlpHttpSpanExporter()),
resource: Resource({'service.name': 'example'}),
);
Trace.configure(provider);
await Trace.tracer.trace('example-operation', () async {});
await provider.shutdown();
}