Skip to content

Commit

Permalink
Fixed issues and tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
z1c0 committed Sep 30, 2019
1 parent b5b1047 commit e71bf65
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/OpenTelemetry/Trace/TracerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ public TracerFactory(SpanProcessor spanProcessor = null, TraceConfig traceConfig
{
this.spanProcessor = spanProcessor ?? Tracing.SpanProcessor;
this.traceConfig = traceConfig ?? Tracing.TraceConfig;
this.TextFormat = new TraceContextFormat();
this.BinaryFormat = new BinaryFormat();
}

internal ITextFormat TextFormat { get; set; }

internal IBinaryFormat BinaryFormat { get; set; }

/// <inheritdoc/>
public ITracer GetTracer(string name, string version = null)
Expand All @@ -47,7 +51,7 @@ public ITracer GetTracer(string name, string version = null)
if (!this.tracerRegistry.TryGetValue(key, out var tracer))
{
var labels = CreateLibraryResourceLabels(name, version);
tracer = new Tracer(this.spanProcessor, this.traceConfig, null, this.TextFormat, Resource.Create(labels));
tracer = new Tracer(this.spanProcessor, this.traceConfig, this.BinaryFormat, this.TextFormat, Resource.Create(labels));
this.tracerRegistry.Add(key, tracer);
}

Expand Down

0 comments on commit e71bf65

Please sign in to comment.