mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
removed akka.net
This commit is contained in:
@@ -5,19 +5,4 @@ public static class DiagnosticsConfig
|
||||
{
|
||||
public const string SourceName = "canvas-management-source";
|
||||
public readonly static ActivitySource Source = new(SourceName);
|
||||
|
||||
public static Activity? Activity(this ITraceableMessage message, string activityName)
|
||||
{
|
||||
if (message.ParentTrace != null && message.ParentSpan != null)
|
||||
{
|
||||
ActivityContext parentContext = new ActivityContext(
|
||||
(ActivityTraceId)message.ParentTrace,
|
||||
(ActivitySpanId)message.ParentSpan,
|
||||
ActivityTraceFlags.Recorded
|
||||
);
|
||||
|
||||
return Source?.StartActivity(activityName, ActivityKind.Internal, parentContext);
|
||||
}
|
||||
return Source?.StartActivity(activityName);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user