Skip to content

Commit 6f79e2e

Browse files
committed
Make GetActivityContext public to provide the ability to get context activity context
1 parent 7a74497 commit 6f79e2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NATS.Client.Core/NatsMsgTelemetryExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ public static class NatsMsgTelemetryExtensions
2626
tags: tags);
2727
}
2828

29-
internal static ActivityContext GetActivityContext<T>(this in NatsMsg<T> msg) => msg.Headers?.Activity?.Context ?? default;
29+
/// <summary>Gets the activity context associated with the NatsMsg.</summary>
30+
public static ActivityContext GetActivityContext<T>(this in NatsMsg<T> msg) =>
31+
msg.Headers?.Activity?.Context ?? default;
3032
}

0 commit comments

Comments
 (0)