Class TracingOptions
- Namespace
- Steeltoe.Management.Tracing
- Assembly
- Steeltoe.Management.TracingBase.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class TracingOptions : ITracingOptions
- Inheritance
-
TracingOptions
- Implements
- Inherited Members
Constructors
TracingOptions(IApplicationInstanceInfo, IConfiguration)
public TracingOptions(IApplicationInstanceInfo appInfo, IConfiguration config)
Parameters
appInfoIApplicationInstanceInfoconfigIConfiguration
Properties
AlwaysSample
Gets a value indicating whether traces should ALWAYS be captured
public bool AlwaysSample { get; set; }
Property Value
EgressIgnorePattern
Gets a regex pattern for requests leaving this application that should not be traced
public string EgressIgnorePattern { get; set; }
Property Value
Remarks
Default value: "/api/v2/spans|/v2/apps/./permissions|/eureka/"
ExporterEndpoint
Gets a value representing the endpoint used for exporting traces
public Uri ExporterEndpoint { get; set; }
Property Value
IngressIgnorePattern
Gets a regex pattern for requests coming into this application that should not be traced
public string IngressIgnorePattern { get; set; }
Property Value
Remarks
Default value: "/actuator/.|/cloudfoundryapplication/.|.\.png|.\.css|.\.js|.\.html|/favicon.ico|/hystrix.stream|.*\.gif"
MaxPayloadSizeInBytes
Gets the maximum payload size in bytes. Default value: 4096.
public int MaxPayloadSizeInBytes { get; set; }
Property Value
Name
Gets the name of the application
public string Name { get; }
Property Value
NeverSample
Gets a value indicating whether traces should NEVER be captured
public bool NeverSample { get; set; }
Property Value
PropagationType
Gets a value indicating the propagation format that should be used
public string PropagationType { get; set; }
Property Value
Remarks
Default value is currently B3. W3C trace context is also supported
SingleB3Header
Gets a value indicating whether one or multiple B3 headers should be used
public bool SingleB3Header { get; set; }
Property Value
Remarks
No effect on other propagation types
UseShortTraceIds
Gets a value indicating whether trace ids should be truncated from 16 to 8 bytes in logs
public bool UseShortTraceIds { get; set; }
Property Value
Remarks
This setting will NOT affect exported traces