OpenTelemetry.Exporter.Console 1.13.1
Console Exporter for OpenTelemetry .NET
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:
- Logs: ASP.NET Core | Console
- Metrics: ASP.NET Core | Console
- Traces: ASP.NET Core | Console
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.
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
No packages depend on OpenTelemetry.Exporter.Console.
.NET Framework 4.6.2
- OpenTelemetry (>= 1.13.1)
- System.Text.Encodings.Web (>= 4.7.2)
- System.Text.Json (>= 4.7.2)
.NET 8.0
- OpenTelemetry (>= 1.13.1)
- System.Text.Json (>= 8.0.5)
.NET 9.0
- OpenTelemetry (>= 1.13.1)
.NET Standard 2.0
- OpenTelemetry (>= 1.13.1)
- System.Text.Encodings.Web (>= 4.7.2)
- System.Text.Json (>= 4.7.2)
Version | Downloads | Last updated |
---|---|---|
1.13.1 | 4 | 10/11/2025 |
1.13.0 | 3 | 10/06/2025 |
1.12.0 | 19 | 05/01/2025 |
1.11.2 | 19 | 03/04/2025 |
1.11.1 | 29 | 01/26/2025 |
1.11.0 | 33 | 01/19/2025 |
1.11.0-rc.1 | 27 | 12/16/2024 |
1.10.0 | 32 | 11/14/2024 |
1.10.0-rc.1 | 51 | 11/04/2024 |
1.10.0-beta.1 | 37 | 10/07/2024 |
1.9.0 | 40 | 06/15/2024 |
1.9.0-rc.1 | 46 | 06/11/2024 |
1.9.0-alpha.1 | 44 | 05/27/2024 |
1.8.1 | 49 | 04/20/2024 |
1.8.0 | 52 | 04/04/2024 |
1.8.0-rc.1 | 49 | 03/28/2024 |
1.8.0-beta.1 | 46 | 03/20/2024 |
1.7.0 | 49 | 12/10/2023 |
1.7.0-rc.1 | 45 | 12/06/2023 |
1.7.0-alpha.1 | 52 | 10/19/2023 |
1.6.0 | 51 | 09/07/2023 |
1.6.0-rc.1 | 53 | 08/27/2023 |
1.6.0-alpha.1 | 48 | 08/07/2023 |
1.5.1 | 54 | 07/02/2023 |
1.5.0 | 51 | 08/05/2023 |
1.5.0-rc.1 | 45 | 08/05/2023 |
1.5.0-alpha.2 | 43 | 08/01/2023 |
1.5.0-alpha.1 | 44 | 08/04/2023 |
1.4.0 | 51 | 08/08/2023 |
1.4.0-rc.4 | 45 | 09/29/2023 |
1.4.0-rc.3 | 48 | 07/01/2023 |
1.4.0-rc.2 | 55 | 08/07/2023 |
1.4.0-rc.1 | 53 | 08/06/2023 |
1.4.0-beta.3 | 53 | 08/05/2023 |
1.4.0-beta.2 | 45 | 08/08/2023 |
1.4.0-beta.1 | 52 | 08/06/2023 |
1.4.0-alpha.2 | 45 | 08/06/2023 |
1.4.0-alpha.1 | 55 | 08/06/2023 |
1.3.2 | 53 | 09/24/2023 |
1.3.1 | 56 | 08/07/2023 |
1.3.0 | 59 | 10/19/2022 |
1.3.0-rc.2 | 49 | 08/08/2023 |
1.3.0-beta.2 | 58 | 06/15/2022 |
1.3.0-beta.1 | 49 | 08/27/2023 |
1.2.0 | 53 | 08/07/2023 |
1.2.0-rc5 | 45 | 08/16/2023 |
1.2.0-rc4 | 53 | 11/01/2022 |
1.2.0-rc3 | 41 | 08/15/2023 |
1.2.0-rc2 | 43 | 08/09/2023 |
1.2.0-rc1 | 48 | 10/07/2022 |
1.2.0-beta2.1 | 50 | 11/25/2022 |
1.2.0-beta1 | 44 | 08/18/2023 |
1.2.0-alpha4 | 53 | 08/05/2023 |
1.2.0-alpha3 | 50 | 08/08/2023 |
1.2.0-alpha2 | 54 | 07/26/2023 |
1.2.0-alpha1 | 48 | 07/27/2023 |
1.1.0 | 45 | 08/06/2023 |
1.1.0-rc1 | 54 | 08/10/2023 |
1.1.0-beta4 | 50 | 08/24/2023 |
1.1.0-beta3 | 47 | 09/01/2023 |
1.1.0-beta2 | 47 | 08/04/2023 |
1.1.0-beta1 | 48 | 08/22/2023 |
1.0.1 | 54 | 08/18/2023 |
1.0.0-rc4 | 52 | 07/26/2023 |
1.0.0-rc3 | 44 | 08/11/2023 |
1.0.0-rc2 | 45 | 08/24/2023 |
1.0.0-rc1.1 | 44 | 08/11/2023 |
0.8.0-beta.1 | 44 | 08/11/2023 |
0.7.0-beta.1 | 48 | 08/04/2023 |
0.6.0-beta.1 | 45 | 09/30/2023 |
0.5.0-beta.2 | 48 | 08/05/2023 |
0.4.0-beta.2 | 47 | 08/19/2023 |
0.3.0-beta.1 | 51 | 08/04/2023 |
0.2.0-alpha.275 | 40 | 08/08/2023 |
0.2.0-alpha.220 | 57 | 10/26/2022 |