Method StartActivity
StartActivity<T>(in NatsMsg<T>, string, IEnumerable<KeyValuePair<string, object?>>?)
Start an activity under the NatsMsg associated activity.
public static Activity? StartActivity<T>(this in NatsMsg<T> msg, string name = "", IEnumerable<KeyValuePair<string, object?>>? tags = null)
Parameters
msg
NatsMsg<T>Nats message
name
stringName of new activity
tags
IEnumerable<KeyValuePair<string, object>>Optional tags to add to the activity
Returns
Type Parameters
T