nat.observability.mixin.collector_config_mixin#
Classes#
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.BaseModelMixin 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.selfis explicitly positional-only to allowselfas a field name.