17.243. Class ActivitySourceExt

Namespace: ArmoniK.Core.Common.Utils
Assembly: ArmoniK.Core.Common.dll

public static class ActivitySourceExt

17.243.1. Inheritance

objectActivitySourceExt

17.243.2. Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

17.243.3. Methods

17.243.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 = "")

17.243.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

17.243.3.1.2. Returns

Activity?

The started activity