OpenTelemetry.Instrumentation.AWS 1.12.1

Prefix Reserved
dotnet add package OpenTelemetry.Instrumentation.AWS --version 1.12.1
                    
NuGet\Install-Package OpenTelemetry.Instrumentation.AWS -Version 1.12.1
                    
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="OpenTelemetry.Instrumentation.AWS" Version="1.12.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OpenTelemetry.Instrumentation.AWS" Version="1.12.1" />
                    
Directory.Packages.props
<PackageReference Include="OpenTelemetry.Instrumentation.AWS" />
                    
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 OpenTelemetry.Instrumentation.AWS --version 1.12.1
                    
#r "nuget: OpenTelemetry.Instrumentation.AWS, 1.12.1"
                    
#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 OpenTelemetry.Instrumentation.AWS@1.12.1
                    
#: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=OpenTelemetry.Instrumentation.AWS&version=1.12.1
                    
Install as a Cake Addin
#tool nuget:?package=OpenTelemetry.Instrumentation.AWS&version=1.12.1
                    
Install as a Cake Tool

AWS SDK client instrumentation for OpenTelemetry

Status
Stability Stable
Code Owners @srprash, @normj

NuGet version badge NuGet download count badge codecov.io

Download the OpenTelemetry.Instrumentation.AWS package:

dotnet add package OpenTelemetry.Instrumentation.AWS

Add the AWSXRayIdGenerator and AWSInstrumentation to your application. The below example is for an ASP.Net Core application.

using OpenTelemetry;
using OpenTelemetry.Contrib.Extensions.AWSXRay.Trace;
using OpenTelemetry.Trace;

public void ConfigureServices(IServiceCollection services)
{
    services.AddControllers();
    services.AddOpenTelemetryTracing((builder) => builder
        // for tracing calls to AWS services via AWS SDK for .Net
        .AddAWSInstrumentation()
        .AddAspNetCoreInstrumentation()
        .AddOtlpExporter());
}

Semantic Conventions

For an overview on Semantic Conventions, see OpenTelemetery - Semantic Conventions.

While this library is intended for production use, it relies on several Semantic Conventions that are still considered Experimental, meaning they may undergo additional changes before becoming Stable. This can impact the aggregation and analysis of telemetry signals in environments with multiple applications or microservices.

For example, a microservice using an older version of the Semantic Conventions for Http Attributes may emit "http.method" with a value of GET, while a different microservice, using a new version of Semantic Convention may instead emit the GET as "http.request.method".

Future versions the OpenTelemetry.*.AWS libraries will include updates to the Semantic Convention, which may break compatibility with a previous version.

The default will remain as V1_28_0 until the next major version bump.

To opt in to automatic upgrades, you can use SemanticConventionVersion.Latest or you can specify a specific version:

using OpenTelemetry;
using OpenTelemetry.AWS;
using OpenTelemetry.Contrib.Extensions.AWSXRay.Trace;
using OpenTelemetry.Trace;

public void ConfigureServices(IServiceCollection services)
{
    services.AddControllers();
    services.AddOpenTelemetryTracing((builder) => builder
        .AddAWSInstrumentation(opt => {
            // pin to a specific Semantic Convention version
            opt.SemanticConventionVersion = SemanticConventionVersion.V1_29_0;
        });
}

NOTE: Once a Semantic Convention becomes Stable, OpenTelemetry.*.AWS libraries will remain on that version until the next major version bump.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on OpenTelemetry.Instrumentation.AWS:

Package Downloads
Grafana.OpenTelemetry

Full Grafana distribution of OpenTelemetry .NET

Sitko.Core.Storage.S3

Sitko.Core is a set of libraries to help build .NET Core applications fast

Gainsway.Observability

This library add open telemetry configuration extensions for .NET Core Api

APF.Core.OpenTelemetry

This client library enables OpenTelemetry implementation in the APF services.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on OpenTelemetry.Instrumentation.AWS:

Repository Stars
GZTimeWalker/GZCTF
The GZ::CTF project, an open source CTF platform.
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
aws/integrations-on-dotnet-aspire-for-aws
This repositry contains the integrations with .NET Aspire for AWS.
Version Downloads Last Updated
1.12.1 47,305 9/3/2025
1.12.0 445,289 5/6/2025
1.11.3 146,844 5/1/2025
1.11.2 321,564 3/18/2025
1.11.1 178,239 3/6/2025
1.11.0 211,648 1/29/2025
1.10.0-rc.2 10,143 1/15/2025
1.10.0-rc.1 9,742 1/6/2025
1.10.0-beta.3 15,424 12/20/2024
1.10.0-beta.2 13,798 12/12/2024
1.10.0-beta.1 334,140 11/23/2024
1.1.0-beta.6 370,347 9/10/2024
1.1.0-beta.5 41,124 8/22/2024
1.1.0-beta.4 837,961 4/12/2024
1.1.0-beta.3 132,064 1/26/2024
1.1.0-beta.2 152,508 12/2/2023
1.1.0-beta.1 230,993 8/7/2023