cocomon

comon_opentelemetry

OpenTelemetry docs for Dart and Flutter with core SDK, Flutter instrumentation, and Dio client spans.

comon_opentelemetry docs

comon_opentelemetry is a Dart workspace built around three packages:

  • comon_otel for the core SDK
  • comon_otel_flutter for Flutter instrumentation
  • comon_otel_dio for HTTP client spans with Dio

Package matrix

PackageUse it forTypical environment
comon_otelTraces, metrics, logs, propagation, exporters, testing helpersDart backend, CLI, shared libraries
comon_otel_flutterNavigation, lifecycle, startup, performance, interactions, error captureFlutter mobile, desktop, and test apps
comon_otel_dioClient spans, trace-context propagation, HTTP attribute captureAny Dart or Flutter app using Dio

Architecture

comon_otel
├─ comon_otel_flutter
└─ comon_otel_dio

comon_otel is the shared foundation. The Flutter and Dio packages add instrumentation on top of the same tracer, meter, logger, context, and propagator model.

The wider comon ecosystem also exposes companion bridge packages in neighboring workspaces:

What this workspace gives you

  • one async bootstrap path through Otel.init()
  • traces, metrics, and logs behind one global SDK entrypoint
  • W3C trace-context, W3C baggage, B3, and composite propagators
  • OTLP exporters over HTTP JSON, HTTP protobuf, and gRPC
  • in-memory exporters and helpers for tests
  • focused Flutter and Dio integrations instead of one oversized package
  1. Start with Getting started.
  2. Read Core to understand traces, metrics, logs, and exporters.
  3. Add Flutter or Dio depending on your runtime shape.
  4. Add Logger OpenTelemetry or ORM OpenTelemetry when adjacent comon packages should emit into the same backend.

On this page