Skip to content

BaseConfluentMetricsSettingsProvider

faststream.confluent.prometheus.provider.BaseConfluentMetricsSettingsProvider #

BaseConfluentMetricsSettingsProvider()

Bases: MetricsSettingsProvider[MsgType]

Source code in faststream/confluent/prometheus/provider.py
def __init__(self) -> None:
    self.messaging_system = "kafka"

messaging_system instance-attribute #

messaging_system = 'kafka'

get_consume_attrs_from_message #

get_consume_attrs_from_message(msg)
Source code in faststream/prometheus/provider.py
def get_consume_attrs_from_message(
    self,
    msg: "StreamMessage[MsgType]",
) -> "ConsumeAttrs": ...

get_publish_destination_name_from_kwargs #

get_publish_destination_name_from_kwargs(kwargs)
Source code in faststream/confluent/prometheus/provider.py
def get_publish_destination_name_from_kwargs(
    self,
    kwargs: "AnyDict",
) -> str:
    return cast(str, kwargs["topic"])