microsoft.opentelemetry.exporter.azuremonitor.export package

class microsoft.opentelemetry.exporter.azuremonitor.export.BaseExporter(**options)[source]

Azure Monitor base exporter for OpenTelemetry.

Parameters

optionsexport.options to allow configuration for the exporter

add_telemetry_processor(processor: Callable[…, any])None[source]

Adds telemetry processor to the collection.

Telemetry processors will be called one by one before telemetry item is pushed for sending and in the order they were added.

Parameters

processor – Processor to add

clear_telemetry_processors()None[source]

Removes all telemetry processors

class microsoft.opentelemetry.exporter.azuremonitor.export.ExportResult[source]

An enumeration.

FAILED_NOT_RETRYABLE = 2
FAILED_RETRYABLE = 1
SUCCESS = 0
microsoft.opentelemetry.exporter.azuremonitor.export.get_metrics_export_result(result: microsoft.opentelemetry.exporter.azuremonitor.export.ExportResult) → opentelemetry.sdk.metrics.export.MetricsExportResult[source]
microsoft.opentelemetry.exporter.azuremonitor.export.get_trace_export_result(result: microsoft.opentelemetry.exporter.azuremonitor.export.ExportResult) → opentelemetry.sdk.trace.export.SpanExportResult[source]
microsoft.opentelemetry.exporter.azuremonitor.export.is_retryable_code(response_code: int)bool[source]

Determine if response is retryable