obsi_exporter_otlp 1.0.0 copy "obsi_exporter_otlp: ^1.0.0" to clipboard
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();
}
0
likes
160
points
61
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Production OTLP HTTP/Protobuf and HTTP/JSON exporters for Obsi.

Repository (GitHub)
View/report issues
Contributing

Topics

#observability #opentelemetry #otlp #tracing #metrics

License

MIT (license)

Dependencies

http, obsi

More

Packages that depend on obsi_exporter_otlp