Skip to content

Commit c5348d5

Browse files
Added ActivityFactory
1 parent 52381f6 commit c5348d5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
66
<IsPackable>true</IsPackable>
7-
<Version>2.1.29</Version>
7+
<Version>2.1.30</Version>
88
<Authors>Andrey Serdyuk</Authors>
99
<Company>TaskHub</Company>
1010
<PackageTags>#TaskHub</PackageTags>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System.Diagnostics;
2+
3+
namespace TaskHub.Shared.Primitives.Observability;
4+
5+
public class ActivitySourceFactory
6+
{
7+
public static ActivitySource ActivitySource { get; private set; } = new("--placeholder--");
8+
public static void Init(string sourceName) => ActivitySource = new(sourceName);
9+
}

0 commit comments

Comments
 (0)