Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.67 KB

File metadata and controls

40 lines (27 loc) · 1.67 KB

In-memory Exporter for OpenTelemetry .NET

NuGet NuGet

The in-memory exporter stores data in a user provided memory buffer.

Installation

dotnet add package OpenTelemetry.Exporter.InMemory

Configuration

See the TestInMemoryExporter.cs for an example of how to use the exporter for exporting traces to a collection.

You can configure the InMemoryExporter through Options types properties and environment variables. The Options type setters take precedence over the environment variables.

Environment Variables

The following environment variables can be used to override the default values of the PeriodicExportingMetricReaderOptions (following the OpenTelemetry specification.

Environment variable PeriodicExportingMetricReaderOptions property
OTEL_METRIC_EXPORT_INTERVAL ExportIntervalMilliseconds
OTEL_METRIC_EXPORT_TIMEOUT ExportTimeoutMilliseconds

FormatException is thrown in case of an invalid value for any of the supported environment variables.

References