Class AwsTelemetryExportOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Observability.Aws.Configuration
Assembly: Cephalon.Observability.Aws.dll
Configures AWS-hosted observability defaults on top of the shared Cephalon telemetry contract.
public sealed class AwsTelemetryExportOptionsInheritance
Section titled “Inheritance”object ← AwsTelemetryExportOptions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”AwsTelemetryExportOptions()
Section titled “ AwsTelemetryExportOptions()”Initializes a new instance of the
public AwsTelemetryExportOptions()Properties
Section titled “Properties”EnableAwsSdkInstrumentation
Section titled “ EnableAwsSdkInstrumentation”Gets or sets a value indicating whether AWS SDK client instrumentation should be enabled for traces.
public bool EnableAwsSdkInstrumentation { get; set; }Property Value
Section titled “Property Value”EnableLambdaContextExtraction
Section titled “ EnableLambdaContextExtraction”Gets or sets a value indicating whether Lambda context extraction should be configured when the hosted
platform is lambda.
public bool EnableLambdaContextExtraction { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”This does not wrap Lambda handlers automatically. It only configures the OpenTelemetry Lambda extension so hosts that already use the wrapper APIs can keep AWS X-Ray context extraction aligned.
HostedPlatform
Section titled “ HostedPlatform”Gets or sets the hosted AWS platform whose default resource attributes and detectors should be applied.
public string? HostedPlatform { get; set; }Property Value
Section titled “Property Value”Remarks
Section titled “Remarks”Supported values are ec2, ecs, eks, elasticbeanstalk, and lambda.
The package maps them to the current OpenTelemetry cloud.platform attribute values and uses
the matching AWS resource detector when one is available.
UseXRayPropagator
Section titled “ UseXRayPropagator”Gets or sets a value indicating whether the AWS X-Ray text-map propagator should become the default propagator for the host when traces are enabled.
public bool UseXRayPropagator { get; set; }Property Value
Section titled “Property Value”UseXRayTraceIds
Section titled “ UseXRayTraceIds”Gets or sets a value indicating whether AWS X-Ray-compatible trace identifiers should be used.
public bool UseXRayTraceIds { get; set; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Binds AWS telemetry export options from configuration.
public static AwsTelemetryExportOptions FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The application configuration root.
sectionPath string
The configuration section path that contains the engine settings. The default is Engine.
Returns
Section titled “Returns”The bound AWS telemetry export options.