aiq.observability.register#
Attributes#
Classes#
A telemetry exporter to transmit traces to externally hosted phoenix service. |
|
A telemetry exporter to transmit traces to externally hosted otel collector service. |
|
A logger to write runtime logs to the console. |
|
A logger to write runtime logs to a file. |
Functions#
|
|
|
|
|
Build and return a StreamHandler for console-based logging. |
|
Build and return a FileHandler for file-based logging. |
Module Contents#
- logger#
- class PhoenixTelemetryExporter(/, **data: Any)#
Bases:
aiq.data_models.telemetry_exporter.TelemetryExporterBaseConfig
A telemetry exporter to transmit traces to externally hosted phoenix 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 allowself
as a field name.
- async phoenix_telemetry_exporter(
- config: PhoenixTelemetryExporter,
- builder: aiq.builder.builder.Builder,
- class OtelCollectorTelemetryExporter(/, **data: Any)#
Bases:
aiq.data_models.telemetry_exporter.TelemetryExporterBaseConfig
A telemetry exporter to transmit traces to externally hosted otel 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 allowself
as a field name.
- async otel_telemetry_exporter(
- config: OtelCollectorTelemetryExporter,
- builder: aiq.builder.builder.Builder,
- class ConsoleLoggingMethod(/, **data: Any)#
Bases:
aiq.data_models.logging.LoggingBaseConfig
A logger to write runtime logs to the console.
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 allowself
as a field name.
- async console_logging_method(
- config: ConsoleLoggingMethod,
- builder: aiq.builder.builder.Builder,
Build and return a StreamHandler for console-based logging.
- class FileLoggingMethod(/, **data: Any)#
Bases:
aiq.data_models.logging.LoggingBaseConfig
A logger to write runtime logs to a file.
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 allowself
as a field name.
- async file_logging_method(
- config: FileLoggingMethod,
- builder: aiq.builder.builder.Builder,
Build and return a FileHandler for file-based logging.