Skip to main content

emitter

Generic OpenTelemetry emitter helpers.

This module provides a lightweight helper for emitting metrics and spans to OTLP using Datalayer environment conventions.

class OTelEmitter(service_name: 'str' = 'datalayer-service', service_version: 'str' = '0.0.0') -> 'None'

Generic OTEL emitter for counters, histograms, and spans.

The class is intentionally no-op when OpenTelemetry dependencies are not installed, so callers can use it without defensive try/except wrappers.