Bases: Enum
An enumeration.
Bases: object
Interface for exporting spans.
Interface to be implemented by services that want to export spans recorded in their own format.
To export data this MUST be registered to the :class`opentelemetry.sdk.trace.Tracer` using a SimpleSpanProcessor or a BatchSpanProcessor.
Exports a batch of telemetry data.
spans (Sequence
[ReadableSpan
]) – The list of opentelemetry.trace.Span objects to be exported
The result of the export
Shuts down the exporter.
Called when the SDK is shut down.
Hint to ensure that the export of any spans the exporter has received prior to the call to ForceFlush SHOULD be completed as soon as possible, preferably before returning from this method.
Bases: SpanProcessor
Simple SpanProcessor implementation.
SimpleSpanProcessor is an implementation of SpanProcessor that passes ended spans directly to the configured SpanExporter.
Called when a opentelemetry.trace.Span
is started.
This method is called synchronously on the thread that starts the span, therefore it should not block or throw an exception.
span (Span
) – The opentelemetry.trace.Span
that just started.
parent_context (Optional
[Context
]) – The parent context of the span that just started.
Called when a opentelemetry.trace.Span
is ended.
This method is called synchronously on the thread that ends the span, therefore it should not block or throw an exception.
span (ReadableSpan
) – The opentelemetry.trace.Span
that just ended.
Called when a opentelemetry.sdk.trace.TracerProvider
is shutdown.
Bases: SpanProcessor
Batch span processor implementation.
BatchSpanProcessor is an implementation of SpanProcessor that batches ended spans and pushes them to the configured SpanExporter.
BatchSpanProcessor is configurable with the following environment variables which correspond to constructor parameters:
All the logic for emitting spans, shutting down etc. resides in the BatchProcessor class.
Called when a opentelemetry.trace.Span
is started.
This method is called synchronously on the thread that starts the span, therefore it should not block or throw an exception.
span (Span) – The opentelemetry.trace.Span
that just started.
parent_context (Context | None) – The parent context of the span that just started.
None
Called when a opentelemetry.trace.Span
is ended.
This method is called synchronously on the thread that ends the span, therefore it should not block or throw an exception.
span (ReadableSpan
) – The opentelemetry.trace.Span
that just ended.
Called when a opentelemetry.sdk.trace.TracerProvider
is shutdown.
Export all ended spans to the configured Exporter that have not yet been exported.
Bases: SpanExporter
Implementation of SpanExporter
that prints spans to the console.
This class can be used for diagnostic purposes. It prints the exported spans to the console STDOUT.
Exports a batch of telemetry data.
spans (Sequence
[ReadableSpan
]) – The list of opentelemetry.trace.Span objects to be exported
The result of the export
Hint to ensure that the export of any spans the exporter has received prior to the call to ForceFlush SHOULD be completed as soon as possible, preferably before returning from this method.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4