Skip to content

Commit c77f93c

Browse files
committed
create start and end distributed tracing
create start and end distributed tracing
1 parent 7b25381 commit c77f93c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Src/StackifyLib/ProfileTracer.cs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System;
2+
using System.Collections.Specialized;
23
using System.Runtime.CompilerServices;
34
using System.Threading.Tasks;
45
using StackifyLib.Utils;
@@ -22,6 +23,18 @@ public class ProfileTracer
2223

2324
private readonly string _transactionId = Guid.NewGuid().ToString();
2425
private string _requestId = null;
26+
private NameValueCollection _distributedHeaders;
27+
public NameValueCollection DistributedHeader
28+
{
29+
get
30+
{
31+
if(_distributedHeaders == null)
32+
{
33+
_distributedHeaders = new NameValueCollection();
34+
}
35+
return _distributedHeaders;
36+
}
37+
}
2538

2639
#if NETFULL
2740
#if !NET40
@@ -203,6 +216,18 @@ public ProfileTracer IgnoreChildFrames(bool value = true)
203216
return this;
204217
}
205218

219+
[MethodImpl(MethodImplOptions.PreserveSig | MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
220+
public void StartDistributedTracing()
221+
{
222+
223+
}
224+
225+
[MethodImpl(MethodImplOptions.PreserveSig | MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
226+
public void EndDistributedTracing()
227+
{
228+
229+
}
230+
206231
//Method the profiler looks for
207232
[MethodImpl(MethodImplOptions.PreserveSig | MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
208233
private void ExecInternal2(string values, Action action)

0 commit comments

Comments
 (0)