AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Creates a new Amazon.Runtime.Telemetry.Tracing.Tracer instance for a given scope. Tracers are used as an entry point for creating spans.

Namespace: Amazon.Runtime.Telemetry.Tracing
Assembly: AWSSDK.Core.dll
Version: 3.x.y.z

Syntax

C#
public virtual Tracer GetTracer(
         String scope,
         Attributes attributes
)

Parameters

scope
Type: System.String

The name of the instrumentation scope that uniquely identifies the tracer.

attributes
Type: Amazon.Runtime.Telemetry.Attributes

Attributes associated with the tracer.

Return Value


Type: Tracer
A instance for the specified scope.

Remarks

The implementation of this method ignores the attributes and simply calls the Amazon.Runtime.Telemetry.Tracing.TracerProvider.GetTracer(System.String) method. Derived classes can override this method to provide custom behavior based on the attributes.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer