Telemetry providers
Note
This is prerelease documentation for a feature in preview release. It is subject to change.
The SDK provides an implementation of OpenTelemetry
If you have specific telemetry requirements, already have a telemetry solution in mind, or need fine-grained control over how telemetry data is captured and processed, you can also implement your own telemetry provider.
Register your own implementation with the TelemetryProvider class. The following
is a simple example of how to register your own TracerProvider
and
MeterProvider
.
using Amazon;
using Amazon.Runtime.Telemetry;
using Amazon.Runtime.Telemetry.Metrics;
using Amazon.Runtime.Telemetry.Tracing;
public class CustomTracerProvider : TracerProvider
{
// Implement custom tracing logic here
}
public class CustomMeterProvider : MeterProvider
{
// Implement custom metrics logic here
}
// Register custom implementations
AWSConfigs.TelemetryProvider.RegisterTracerProvider(new CustomTracerProvider());
AWSConfigs.TelemetryProvider.RegisterMeterProvider(new CustomMeterProvider());