![]() |
VOOZH | about |
dotnet add package OpenTelemetry.Exporter.Console --version 1.16.0
NuGet\Install-Package OpenTelemetry.Exporter.Console -Version 1.16.0
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.16.0" />
<PackageVersion Include="OpenTelemetry.Exporter.Console" Version="1.16.0" />Directory.Packages.props
<PackageReference Include="OpenTelemetry.Exporter.Console" />Project file
paket add OpenTelemetry.Exporter.Console --version 1.16.0
#r "nuget: OpenTelemetry.Exporter.Console, 1.16.0"
#:package OpenTelemetry.Exporter.Console@1.16.0
#addin nuget:?package=OpenTelemetry.Exporter.Console&version=1.16.0Install as a Cake Addin
#tool nuget:?package=OpenTelemetry.Exporter.Console&version=1.16.0Install as a Cake Tool
The console exporter prints data to the Console window. ConsoleExporter supports exporting logs, metrics and traces.
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.
dotnet add package OpenTelemetry.Exporter.Console
See the individual "getting started" examples depending on the signal being used:
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.
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.
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 |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net461 net461 was computed. net462 net462 is compatible. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on OpenTelemetry.Exporter.Console:
| Package | Downloads |
|---|---|
|
Microsoft.ApplicationInsights.Web
Application Insights for .NET web applications. Privacy statement: https://go.microsoft.com/fwlink/?LinkId=512156 |
|
|
OpenTelemetry.AutoInstrumentation.Runtime.Managed
Managed components used by the OpenTelemetry.AutoInstrumentation project. |
|
|
Honeycomb.OpenTelemetry
Honeycomb's OpenTelemetry SDK |
|
|
Elvia.Telemetry
Common logging/telemetry functionality to used by all services within the Elvia ecosystem. |
|
|
Genocs.Tracing
The tracing library to setup OpenTelemetry. |
Showing the top 20 popular GitHub repositories that depend on OpenTelemetry.Exporter.Console:
| Repository | Stars |
|---|---|
|
microsoft/semantic-kernel
Integrate cutting-edge LLM technology quickly and easily into your apps
|
|
|
dotnet/runtime
.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
|
|
|
dodyg/practical-aspnetcore
Practical samples of ASP.NET Core 11, 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
|
|
|
MassTransit/MassTransit
Distributed Application Framework for .NET
|
|
|
quartznet/quartznet
Quartz Enterprise Scheduler .NET
|
|
|
microsoft/aspire
Aspire is the tool for code-first, extensible, observable dev and deploy.
|
|
|
Azure/azure-sdk-for-net
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
|
|
|
ravendb/ravendb
ACID Document Database
|
|
|
ZiggyCreatures/FusionCache
FusionCache is an easy to use, fast and robust hybrid cache with advanced resiliency features.
|
|
|
oskardudycz/EventSourcing.NetCore
Examples and Tutorials of Event Sourcing in .NET
|
|
|
Dotnet-Boxed/Templates
.NET project templates with batteries included, providing the minimum amount of code required to get you going faster.
|
|
|
linq2db/linq2db
Linq to database provider.
|
|
|
microsoft/Generative-AI-for-beginners-dotnet
Five lessons, learn how to really apply AI to your .NET Applications
|
|
|
Squidex/squidex
Headless CMS and Content Managment Hub
|
|
|
exceptionless/Exceptionless
Exceptionless application
|
|
|
BrighterCommand/Brighter
A framework for building messaging apps with .NET and C#.
|
|
|
JasperFx/wolverine
Supercharged .NET server side development!
|
|
|
asynkron/protoactor-dotnet
Proto Actor - Ultra fast distributed actors for Go, C# and Java/Kotlin
|
|
|
Azure/durabletask
Durable Task Framework allows users to write long running persistent workflows in C# using the async/await capabilities.
|
|
|
wiremock/WireMock.Net
WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on WireMock Java, but extended and different functionality. Full documentation can be found at https://wiremock.org/dotnet/.
|
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 1.16.0 | 117,324 | 6/10/2026 | |
| 1.16.0-rc.1 | 91 | 6/10/2026 | |
| 1.15.3 | 5,523,296 | 4/21/2026 | |
| 1.15.2 | 534,022 | 4/8/2026 | |
| 1.15.1 | 822,615 | 3/27/2026 | |
| 1.15.0 | 4,957,318 | 1/21/2026 | |
| 1.14.0 | 5,703,147 | 11/12/2025 | |
| 1.14.0-rc.1 | 24,074 | 10/21/2025 | |
| 1.13.1 | 3,599,370 | 10/9/2025 | |
| 1.13.0 | 828,143 | 10/1/2025 | 1.13.0 is deprecated because it has critical bugs. |
| 1.12.0 | 16,159,719 | 4/30/2025 | |
| 1.11.2 | 8,501,695 | 3/4/2025 | |
| 1.11.1 | 3,285,973 | 1/23/2025 | |
| 1.11.0 | 582,054 | 1/16/2025 | |
| 1.11.0-rc.1 | 40,863 | 12/12/2024 | |
| 1.10.0 | 4,445,567 | 11/12/2024 | |
| 1.10.0-rc.1 | 4,967 | 11/1/2024 | |
| 1.10.0-beta.1 | 20,400 | 9/30/2024 | |
| 1.9.0 | 38,239,283 | 6/14/2024 | |
| 1.9.0-rc.1 | 477,778 | 6/7/2024 |
For highlights and announcements see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.16.0/RELEASENOTES.md.
For detailed changes see: https://github.com/open-telemetry/opentelemetry-dotnet/blob/core-1.16.0/src/OpenTelemetry.Exporter.Console/CHANGELOG.md.