CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector 13.0.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector --version 13.0.0
                    
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector -Version 13.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector" Version="13.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector" Version="13.0.0" />
                    
Directory.Packages.props
<PackageReference Include="CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector --version 13.0.0
                    
#r "nuget: CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector, 13.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector@13.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector&version=13.0.0
                    
Install as a Cake Addin
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector&version=13.0.0
                    
Install as a Cake Tool

CommunityToolkit.Aspire.Hosting.OpenTelemetryCollector

Overview

This .NET Aspire Integration can be used to include OpenTelemetry Collector in a container.

Usage

Example 1: Add OpenTelemetry Collector without automatic redirection

In this approach, only the projects and resource that you forward the collector to will have their telemetry forwarded to the collector.

var builder = DistributedApplication.CreateBuilder(args);


var collector = builder.AddOpenTelemetryCollector("opentelemetry-collector")
    .WithConfig("./config.yaml");

builder.AddProject<Projects.CommunityToolkit_Aspire_Hosting_OpenTelemetryCollector_Api>("api")
    .WithOpenTelemetryCollectorRouting(collector);

builder.Build().Run();

Example 2: Add OpenTelemetry Collector with automatic redirection

In this approach, all projects and resources that have the OtlpExporterAnnotation will have their telemetry forwarded to the collector.

var builder = DistributedApplication.CreateBuilder(args);


var collector = builder.AddOpenTelemetryCollector("opentelemetry-collector")
    .WithConfig("./config.yaml")
    .WithAppForwarding();

builder.AddProject<Projects.CommunityToolkit_Aspire_Hosting_OpenTelemetryCollector_Api>("api");

builder.Build().Run();
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
13.0.1-beta.486 21 1/12/2026
13.0.1-beta.468 654 12/3/2025
13.0.1-beta.467 614 12/3/2025
13.0.0 645 11/25/2025
13.0.0-beta.462 137 11/25/2025
13.0.0-beta.456 142 11/23/2025
13.0.0-beta.454 88 11/23/2025
13.0.0-beta.453 104 11/22/2025
13.0.0-beta.450 110 11/22/2025
13.0.0-beta.448 108 11/22/2025
13.0.0-beta.444 352 11/17/2025
13.0.0-beta.443 249 11/17/2025
13.0.0-beta.440 94 11/15/2025
13.0.0-beta.439 260 11/12/2025
13.0.0-beta.438 230 11/12/2025
13.0.0-beta.436 225 11/12/2025
13.0.0-beta.435 225 11/11/2025
13.0.0-beta.433 149 11/10/2025
13.0.0-beta.432 150 11/10/2025
13.0.0-beta.431 138 11/6/2025
13.0.0-beta.430 144 11/6/2025
9.9.0 415 11/3/2025
9.9.0-beta.427 142 11/3/2025
9.8.1-beta.426 143 11/3/2025
9.8.1-beta.424 132 10/28/2025
9.8.1-beta.420 134 10/27/2025
9.8.1-beta.419 129 10/27/2025
9.8.1-beta.417 135 10/27/2025
9.8.1-beta.414 124 10/24/2025
9.8.1-beta.413 124 10/22/2025
9.8.1-beta.410 133 10/16/2025
9.8.1-beta.408 120 10/16/2025
9.8.1-beta.407 124 10/16/2025
9.8.1-beta.406 124 10/15/2025
9.8.0 866 9/26/2025
9.8.0-beta.405 135 10/15/2025
9.8.0-beta.404 127 10/13/2025
9.8.0-beta.402 130 9/29/2025
9.8.0-beta.401 128 9/29/2025
9.8.0-beta.399 133 9/26/2025
9.8.0-beta.398 134 9/25/2025
9.8.0-beta.397 132 9/25/2025
9.8.0-beta.395 135 9/24/2025
9.8.0-beta.394 141 9/23/2025
9.8.0-beta.393 140 9/23/2025
9.8.0-beta.392 144 9/23/2025
9.8.0-beta.389 263 9/18/2025
9.8.0-beta.388 275 9/16/2025
9.8.0-beta.386 214 9/15/2025
9.8.0-beta.385 213 9/15/2025
9.8.0-beta.384 67 9/13/2025