Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 841 Bytes

File metadata and controls

26 lines (18 loc) · 841 Bytes

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

var list = new List<object>();
var activityExporter = new InMemoryExporter<Activity>(
    new InMemoryExporterOptions { ExportedItems = list });
var logExporter = new InMemoryExporter<LogRecord>(
    new InMemoryExporterOptions { ExportedItems = list });

References