Table of Contents

Method StartActivity

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

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 string

Name of new activity

tags IEnumerable<KeyValuePair<string, object>>

Optional tags to add to the activity

Returns

Activity

Returns an Activity or null if no listeners.

Type Parameters

T