Class CarrotActivityFactory
Factory for creating Activity for CarrotMQ tracing
public static class CarrotActivityFactory
- Inheritance
-
CarrotActivityFactory
- Inherited Members
Fields
CarrotRemoteServiceNameKey
Key for remote service name in the activity tags.
public const string CarrotRemoteServiceNameKey = "carrotmq.remote_service_name"
Field Value
CarrotServiceNameKey
Key for service name in the activity tags.
public const string CarrotServiceNameKey = "carrotmq.service_name"
Field Value
CarrotVHostNameKey
Key for the VHost in the activity tags
public const string CarrotVHostNameKey = "carrotmq.v_host"
Field Value
Methods
CreateConsumerActivity(CarrotHeader, string, string, IOptions<CarrotTracingOptions>)
Creates a new Consumer tracing activity.
public static Activity? CreateConsumerActivity(CarrotHeader header, string serviceName, string vhost, IOptions<CarrotTracingOptions> carrotTracingOptions)
Parameters
headerCarrotHeaderThe CarrotMQ header containing tracing information.
serviceNamestringThe name of the service creating the activity.
vhoststringThe rabbitMq VHost to which the service creating the activity is connected.
carrotTracingOptionsIOptions<CarrotTracingOptions>Options for CarrotMQ tracing.
Returns
CreateProducerActivity(CarrotHeader, string, string, IOptions<CarrotTracingOptions>)
Creates a new Producer tracing activity.
public static Activity? CreateProducerActivity(CarrotHeader header, string serviceName, string vhost, IOptions<CarrotTracingOptions> carrotTracingOptions)
Parameters
headerCarrotHeaderThe CarrotMQ header containing tracing information.
serviceNamestringThe name of the service creating the activity.
vhoststringThe rabbitMq VHost to which the service creating the activity is connected.
carrotTracingOptionsIOptions<CarrotTracingOptions>Options for CarrotMQ tracing.