Skip to content

Commit

Permalink
feat(enhance-tracertest): removed unused tracerProvider (#3437)
Browse files Browse the repository at this point in the history
  • Loading branch information
samimusallam authored Jul 11, 2022
1 parent 1c6bb18 commit f471a9f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test/OpenTelemetry.Tests/Trace/TracerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ namespace OpenTelemetry.Trace.Tests
public class TracerTest : IDisposable
{
// TODO: This is only a basic test. This must cover the entire shim API scenarios.
private readonly TracerProvider tracerProvider;
private readonly Tracer tracer;

public TracerTest()
{
this.tracerProvider = TracerProvider.Default;
this.tracer = TracerProvider.Default.GetTracer("tracername", "tracerversion");
}

Expand Down Expand Up @@ -291,7 +289,6 @@ public void CreateSpan_NotSampled()
public void Dispose()
{
Activity.Current = null;
this.tracerProvider.Dispose();
GC.SuppressFinalize(this);
}

Expand Down

0 comments on commit f471a9f

Please # to comment.