azure.monitor.opentelemetry.exporter package¶
-
class
azure.monitor.opentelemetry.exporter.
AzureMonitorTraceExporter
(**kwargs: Any)[source]¶ Azure Monitor base exporter for OpenTelemetry.
Azure Monitor base exporter for OpenTelemetry.
- Keyword Arguments
api_version (str) – The service API version used. Defaults to latest.
- Return type
-
export
(spans: Sequence[opentelemetry.trace.span.Span], **kwargs: Any) → opentelemetry.sdk.trace.export.SpanExportResult[source]¶ Export data :param spans: Open Telemetry Spans to export. :type spans: Sequence[~opentelemetry.trace.Span] :rtype: ~opentelemetry.sdk.trace.export.SpanExportResult
-
classmethod
from_connection_string
(conn_str: str, **kwargs: Any) → azure.monitor.opentelemetry.exporter.export.trace._exporter.AzureMonitorTraceExporter[source]¶ Create an AzureMonitorTraceExporter from a connection string.
This is the recommended way of instantation if a connection string is passed in explicitly. If a user wants to use a connection string provided by environment variable, the constructor of the exporter can be called directly.
- Parameters
conn_str (str) – The connection string to be used for authentication.
- Keyword Arguments
api_version (str) – The service API version used. Defaults to latest.
:returns an instance of ~AzureMonitorTraceExporter