Configure the OpenTelemetry-based telemetry provider - Amazon SDK for .NET (V3)
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Version 4 (V4) of the Amazon SDK for .NET has been released!

To start using the new version of the SDK, see the Amazon SDK for .NET (V4) Developer Guide, especially the topic for Migrating to version 4.

Configure the OpenTelemetry-based telemetry provider

The Amazon SDK for .NET includes an implementation of an OpenTelemetry-based telemetry provider. For details about how to set this provider as the global telemetry provider, see Configure a TelemetryProvider. To use this telemetry provider, you need the following resources in your project:

The OpenTelemetry implementation included with the SDK can be configured to reduce the amount of tracing for HTTPS requests, credentials, and compression. To do so, set the SuppressDownstreamInstrumentation option to true, similar to the following:

Sdk.CreateTracerProviderBuilder() .ConfigureResource(e => e.AddService("DemoOtel")) .AddAWSInstrumentation(options => options.SuppressDownstreamInstrumentation = true) .AddConsoleExporter() .Build();

For additional information about this provider, see the blog post Enhancing Observability in the Amazon SDK for .NET with OpenTelemetry.