Click or drag to resize

AWSXRayRecorderBuilder Class

This class provides utilities to build an instance of AWSXRayRecorder with different configurations.
Inheritance Hierarchy
SystemObject
  Amazon.XRay.Recorder.CoreAWSXRayRecorderBuilder

Namespace:  Amazon.XRay.Recorder.Core
Assembly:  AWSXRayRecorder.Core (in AWSXRayRecorder.Core.dll) Version: 2.5.2
Syntax
C#
public class AWSXRayRecorderBuilder

The AWSXRayRecorderBuilder type exposes the following members.

Constructors
  NameDescription
Public methodAWSXRayRecorderBuilder
Initializes a new instance of the AWSXRayRecorderBuilder class
Top
Properties
  NameDescription
Public propertyPlugins
Gets a read-only copy of current plugins in the builder
Top
Methods
  NameDescription
Public methodBuild
Build a instance of AWSXRayRecorder with existing configuration added to the builder.
Public methodStatic memberGetDefaultBuilder
Initializes AWSXRayRecorderBuilder instance with default settings.
Public methodWithContextMissingStrategy
Adds the context missing strategy.
Public methodWithContextMissingStrategyFromAppSettings
Reads useRuntimeErrors settings from app settings, and adds into the builder. If the useRuntimeErrors settings doesn't exist, it defaults to true and ContextMissingStrategy.RUNTIME_ERROR is used.
Public methodWithDaemonAddress
Adds the given plugin to builder
Public methodWithExceptionSerializationStrategy
Configures recorder with provided ExceptionSerializationStrategy. While setting number consider max trace size limit : https://aws.amazon.com/xray/pricing/
Public methodWithPlugin
Adds the given plugin to builder
Public methodWithPluginsFromAppSettings
Reads plugin settings from app settings, and adds new instance of each plugin into the builder. If the plugin settings doesn't exist or the value of the settings is invalid, nothing will be added.
Public methodWithSamplingStrategy
Adds the given sampling strategy to builder. There can exist only one sampling strategy. Any previous value of sampling strategy will be overwritten.
Public methodWithSegmentEmitter
Adds the provided ISegmentEmitter instance.
Public methodWithTraceContext
Configures recorder with ITraceContext instance.
Top
See Also