nat.observability.mixin.collector_config_mixin#

Classes#

CollectorConfigMixin

Mixin for telemetry exporters that require a project name and endpoint when exporting to a collector service.

Module Contents#

class CollectorConfigMixin(/, **data: Any)#

Bases: pydantic.BaseModel

Mixin for telemetry exporters that require a project name and endpoint when exporting to a collector service.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

project: str = None#
endpoint: str = None#