Skip to content

Asynchronous processors/exporters #1395

@ghelyar

Description

@ghelyar

Feature Request

Is your feature request related to a problem?

Exporting telemetry is likely to be an I/O based operation, such as writing it to a file or a socket.

The built-in types for exporting logs and traces, such as BaseProcessor, BatchExportProcessor and BaseExporter are synchronous. This means that any asynchronous calls need to be synchronously waited, using something like .GetAwaiter().GetResult(), as seen in the ZipkinExporter.

MetricExporter is already asynchronous.

Describe the solution you'd like:

It would be nice if these methods were asynchronous e.g. Task<ExportResult> BaseExporter.ExportAsync(in Batch<T> batch, CancellationToken cancellationToken).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpkg:OpenTelemetryIssues related to OpenTelemetry NuGet package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions