Skip to content

KafkaTelemetryMiddleware

faststream.confluent.opentelemetry.KafkaTelemetryMiddleware #

KafkaTelemetryMiddleware(*, tracer_provider=None, meter_provider=None, meter=None)

Bases: TelemetryMiddleware

Source code in faststream/confluent/opentelemetry/middleware.py
def __init__(
    self,
    *,
    tracer_provider: Optional[TracerProvider] = None,
    meter_provider: Optional[MeterProvider] = None,
    meter: Optional[Meter] = None,
) -> None:
    super().__init__(
        settings_provider_factory=telemetry_attributes_provider_factory,
        tracer_provider=tracer_provider,
        meter_provider=meter_provider,
        meter=meter,
        include_messages_counters=True,
    )