1017 B
1017 B
Console Exporter for OpenTelemetry .NET
The console exporter prints data to the Console in a JSON serialized format.
Note: this exporter is intended to be used during learning how telemetry data are created and exported. It is not recommended for any production environment.
Installation
dotnet add package OpenTelemetry.Exporter.Console
Configuration
You can configure the ConsoleExporter by following the directions below:
DisplayAsJson: Boolean to show data as JSON.
See the
TestConsoleExporter.cs
for an example of how to use the exporter.