IAWSXRayRecorder Interface |
Namespace: Amazon.XRay.Recorder.Core
public interface IAWSXRayRecorder : IDisposable
The IAWSXRayRecorder type exposes the following members.
Name | Description | |
---|---|---|
ContextMissingStrategy |
Gets or sets the context missing strategy.
| |
Emitter |
Emitter used to send Traces.
| |
ExceptionSerializationStrategy |
Defines exception serialization stategy to process recorded exceptions. ExceptionSerializationStrategy | |
Origin |
Gets or sets origin service
| |
RuntimeContext |
Gets the runtime context which is generated by plugins.
| |
SamplingStrategy |
Gets or sets the sampling strategy
| |
StreamingStrategy |
Get or sets the streaming strategy
| |
TraceContext |
Instance of ITraceContext, used to store segment/subsegment.
|
Name | Description | |
---|---|---|
AddAnnotation |
Adds the specified key and value as annotation to current segment
| |
AddException |
Add the exception to current segment
| |
AddHttpInformation |
Adds the specified key and value as http information to current segment
| |
AddMetadata(String, Object) |
Adds the specified key and value to metadata under default namespace.
| |
AddMetadata(String, String, Object) |
Adds the specified key and value to metadata with given namespace.
| |
AddPrecursorId |
Add a precursor id.
| |
AddSqlInformation |
Add the specified key and value as SQL information to current segment
| |
BeginSegment |
Begin a tracing segment. A new tracing segment will be created and started.
| |
BeginSubsegment |
Start a subsegment with a given name and optional creation timestamp
| |
BeginSubsegmentWithoutSampling |
Start a subsegment with a given name
This subsegment will not emit and its trace context will have Sampled=0
| |
EndSegment |
End tracing of a given segment.
| |
EndSubsegment |
End a subsegment
| |
MarkError |
Mark the current segment as error.
| |
MarkFault |
Mark the current segment as fault.
| |
MarkThrottle |
Mark the current segment as being throttled.
| |
SetDaemonAddress |
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.
| |
SetNamespace |
Set namespace to current segment
| |
TraceMethod(String, Action) |
Trace a given method returns void.
| |
TraceMethodTResult(String, FuncTResult) |
Trace a given method with return value.
| |
TraceMethodAsync(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.
| |
TraceMethodAsyncTResult(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.
|