Click or drag to resize

IAWSXRayRecorder Interface

Interface to record tracing information for AWS X-Ray

Namespace:  Amazon.XRay.Recorder.Core
Assembly:  AWSXRayRecorder.Core (in AWSXRayRecorder.Core.dll) Version: 2.14.0+018bfa65877dd72e346735bad4d7ad46f217da09
Syntax
C#
public interface IAWSXRayRecorder : IDisposable

The IAWSXRayRecorder type exposes the following members.

Properties
  NameDescription
Public propertyContextMissingStrategy
Gets or sets the context missing strategy.
Public propertyEmitter
Emitter used to send Traces.
Public propertyExceptionSerializationStrategy
Defines exception serialization stategy to process recorded exceptions. ExceptionSerializationStrategy
Public propertyOrigin
Gets or sets origin service
Public propertyRuntimeContext
Gets the runtime context which is generated by plugins.
Public propertySamplingStrategy
Gets or sets the sampling strategy
Public propertyStreamingStrategy
Get or sets the streaming strategy
Public propertyTraceContext
Instance of ITraceContext, used to store segment/subsegment.
Top
Methods
  NameDescription
Public methodAddAnnotation
Adds the specified key and value as annotation to current segment
Public methodAddException
Add the exception to current segment
Public methodAddHttpInformation
Adds the specified key and value as http information to current segment
Public methodAddMetadata(String, Object)
Adds the specified key and value to metadata under default namespace.
Public methodAddMetadata(String, String, Object)
Adds the specified key and value to metadata with given namespace.
Public methodAddPrecursorId
Add a precursor id.
Public methodAddSqlInformation
Add the specified key and value as SQL information to current segment
Public methodBeginSegment
Begin a tracing segment. A new tracing segment will be created and started.
Public methodBeginSubsegment
Start a subsegment with a given name and optional creation timestamp
Public methodBeginSubsegmentWithoutSampling
Start a subsegment with a given name This subsegment will not emit and its trace context will have Sampled=0
Public methodEndSegment
End tracing of a given segment.
Public methodEndSubsegment
End a subsegment
Public methodMarkError
Mark the current segment as error.
Public methodMarkFault
Mark the current segment as fault.
Public methodMarkThrottle
Mark the current segment as being throttled.
Public methodSetDaemonAddress
Sets the daemon address. The daemon address should be in format "IPAddress:Port", i.e. "127.0.0.1:2000". If environment variable is set to specific daemon address, the call to this method will be ignored.
Public methodSetNamespace
Set namespace to current segment
Public methodTraceMethod(String, Action)
Trace a given method returns void.
Public methodTraceMethodTResult(String, FuncTResult)
Trace a given method with return value.
Public methodTraceMethodAsync(String, FuncTask)
Trace a given asynchronous method that returns no value. A subsegment will be created for this method. Any exception thrown by the method will be captured.
Public methodTraceMethodAsyncTResult(String, FuncTaskTResult)
Trace a given asynchronous function with return value. A subsegment will be created for this method. Any exception thrown by the method will be captured.
Top
See Also