21.246. Class ActivitySourceExt
Namespace: ArmoniK.Core.Common.Utils
Assembly: ArmoniK.Core.Common.dll
Provides extension methods for
public static class ActivitySourceExt
21.246.1. Inheritance
21.246.2. Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
21.246.3. Methods
21.246.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 = "")
21.246.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
21.246.3.1.2. Returns
The started activity