23.245. Class ActivitySourceExt
Namespace: ArmoniK.Core.Common.Utils
Assembly: ArmoniK.Core.Common.dll
Provides extension methods for
public static class ActivitySourceExt
23.245.1. Inheritance
23.245.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
23.245.3. Methods
23.245.3.1. StartActivityFromParent(ActivitySource, ActivityContext, Activity?, ActivityKind, string)
Starts an activity with the given context while propagating tags and baggage from the parent
public static Activity? StartActivityFromParent(this ActivitySource source, ActivityContext context, Activity? parent, ActivityKind kind = ActivityKind.Internal, string name = "")
23.245.3.1.1. Parameters
source ActivitySource
Activity source from which create the new activity
context ActivityContext
Context to pass to the created activity
parent Activity?
Activity parent with tags and baggage to propagate
kind ActivityKind
Activity kind
name string
Name of the created activity, defaults to caller name
23.245.3.1.2. Returns
The started activity