OpenTelemetry.Exporter.Console 1.19.1

Console Exporter for OpenTelemetry .NET

NuGet NuGet

The console exporter prints data to the Console window. ConsoleExporter supports exporting logs, metrics and traces.

[!WARNING] This exporter is intended for debugging and learning purposes. It is not recommended for production use. The output format is not standardized and can change at any time. If a standardized format for exporting telemetry to stdout is desired, upvote on this feature request.

Installation

dotnet add package OpenTelemetry.Exporter.Console

See the individual "getting started" examples depending on the signal being used:

Configuration

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

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

MetricReaderOptions (metrics)

For metrics, AddConsoleExporter() pairs the exporter with a PeriodicExportingMetricReader. Use MetricReaderOptions to configure temporality and export interval/timeout:

var meterProvider = Sdk.CreateMeterProviderBuilder()
    // rest of config not shown here.
    .AddConsoleExporter((_, metricReaderOptions) =>
    {
        metricReaderOptions.TemporalityPreference = MetricReaderTemporalityPreference.Delta;

        metricReaderOptions.PeriodicExportingMetricReaderOptions.ExportIntervalMilliseconds = 10_000;
        metricReaderOptions.PeriodicExportingMetricReaderOptions.ExportTimeoutMilliseconds = 5_000;
    })
    .Build();

See TestMetrics.cs for a runnable example.

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

References

Showing the top 20 packages that depend on OpenTelemetry.Exporter.Console.

Packages Downloads
Microsoft.ApplicationInsights.Web
Application Insights for .NET web applications. Privacy statement: https://go.microsoft.com/fwlink/?LinkId=512156
7
Microsoft.ApplicationInsights.Web
Application Insights for .NET web applications. Privacy statement: https://go.microsoft.com/fwlink/?LinkId=512156
8
Microsoft.ApplicationInsights.Web
Application Insights for .NET web applications. Privacy statement: https://go.microsoft.com/fwlink/?LinkId=512156
10
Microsoft.ApplicationInsights.Web
Application Insights for .NET web applications. Privacy statement: https://go.microsoft.com/fwlink/?LinkId=512156
12

For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.19.1/RELEASENOTES.md. For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.19.1/src/OpenTelemetry.Exporter.Console/CHANGELOG.md.

.NET 10.0

.NET Framework 4.6.2

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
1.19.1 1 09/21/2026
1.19.1-rc.1 0 09/21/2026
1.19.0 2 09/18/2026
1.19.0-rc.1 1 09/19/2026
1.18.0 4 09/15/2026
1.18.0-rc.1 2 09/16/2026
1.17.0 3 07/25/2026
1.17.0-rc.1 3 07/25/2026
1.16.0 3 06/17/2026
1.16.0-rc.1 3 06/16/2026
1.15.3 4 05/19/2026
1.15.2 5 04/09/2026
1.15.1 5 04/01/2026
1.15.0 10 01/21/2026
1.14.0 9 12/13/2025
1.14.0-rc.1 11 12/13/2025
1.13.1 12 12/13/2025
1.13.0 11 12/13/2025
1.12.0 11 12/13/2025
1.11.2 10 12/13/2025
1.11.1 13 12/13/2025
1.11.0 11 12/13/2025
1.11.0-rc.1 13 12/13/2025
1.10.0 13 12/13/2025
1.10.0-rc.1 13 12/13/2025
1.10.0-beta.1 12 12/13/2025
1.9.0 16 12/13/2025
1.9.0-rc.1 12 12/13/2025
1.9.0-alpha.1 11 12/13/2025
1.8.1 13 12/13/2025
1.8.0 17 12/13/2025
1.8.0-rc.1 13 12/13/2025
1.8.0-beta.1 14 12/13/2025
1.7.0 14 12/13/2025
1.7.0-rc.1 12 12/13/2025
1.7.0-alpha.1 11 12/13/2025
1.6.0 13 12/13/2025
1.6.0-rc.1 13 12/13/2025
1.6.0-alpha.1 12 12/13/2025
1.5.1 14 12/13/2025
1.5.0 13 12/13/2025
1.5.0-rc.1 14 12/13/2025
1.5.0-alpha.2 11 12/13/2025
1.5.0-alpha.1 12 12/13/2025
1.4.0 15 12/13/2025
1.4.0-rc.4 13 12/13/2025
1.4.0-rc.3 13 12/13/2025
1.4.0-rc.2 11 12/13/2025
1.4.0-rc.1 10 12/13/2025
1.4.0-beta.3 13 12/13/2025
1.4.0-beta.2 16 12/13/2025
1.4.0-beta.1 13 12/13/2025
1.4.0-alpha.2 13 12/13/2025
1.4.0-alpha.1 11 12/13/2025
1.3.2 15 12/13/2025
1.3.1 13 12/13/2025
1.3.0 12 12/13/2025
1.3.0-rc.2 13 12/13/2025
1.3.0-beta.2 12 12/13/2025
1.3.0-beta.1 11 12/13/2025
1.2.0 14 12/13/2025
1.2.0-rc5 12 12/13/2025
1.2.0-rc4 13 12/13/2025
1.2.0-rc3 15 12/13/2025
1.2.0-rc2 13 12/13/2025
1.2.0-rc1 12 12/13/2025
1.2.0-beta2.1 14 12/13/2025
1.2.0-beta1 13 12/13/2025
1.2.0-alpha4 14 12/13/2025
1.2.0-alpha3 13 12/13/2025
1.2.0-alpha2 13 12/13/2025
1.2.0-alpha1 12 12/13/2025
1.1.0 11 12/13/2025
1.1.0-rc1 12 12/13/2025
1.1.0-beta4 18 12/13/2025
1.1.0-beta3 12 12/13/2025
1.1.0-beta2 13 12/13/2025
1.1.0-beta1 13 12/13/2025
1.0.1 14 12/13/2025
1.0.0-rc4 13 12/13/2025
1.0.0-rc3 12 12/13/2025
1.0.0-rc2 13 12/13/2025
1.0.0-rc1.1 12 12/13/2025
0.8.0-beta.1 13 12/13/2025
0.7.0-beta.1 14 12/13/2025
0.6.0-beta.1 13 12/13/2025
0.5.0-beta.2 14 12/13/2025
0.4.0-beta.2 14 12/13/2025
0.3.0-beta.1 11 12/13/2025
0.2.0-alpha.275 13 12/13/2025
0.2.0-alpha.220 14 12/13/2025