Skip to content

Commit 26039c8

Browse files
committed
do not use namevaluecollection, unnecessary
do not use namevaluecollection, unnecessary
1 parent 8574138 commit 26039c8

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

Src/StackifyLib/ProfileTracer.cs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,6 @@ public class ProfileTracer
2323

2424
private readonly string _transactionId = Guid.NewGuid().ToString();
2525
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-
}
3826

3927
#if NETFULL
4028
#if !NET40
@@ -219,10 +207,7 @@ public ProfileTracer IgnoreChildFrames(bool value = true)
219207
[MethodImpl(MethodImplOptions.PreserveSig | MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization)]
220208
public void ApplyDistributedHeaders(string traceparent,string tracestate)
221209
{
222-
DistributedHeader.Remove("traceparent");
223-
DistributedHeader.Add("traceparent", traceparent);
224-
DistributedHeader.Remove("tracestate");
225-
DistributedHeader.Add("tracestate", tracestate);
210+
226211
}
227212

228213
//Method the profiler looks for

0 commit comments

Comments
 (0)