From e71bf65a96eeaecc39a69f10da96368337c6abd3 Mon Sep 17 00:00:00 2001 From: Wolfgang Ziegler Date: Mon, 30 Sep 2019 15:57:13 +0200 Subject: [PATCH] Fixed issues and tests after merge --- src/OpenTelemetry/Trace/TracerFactory.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/OpenTelemetry/Trace/TracerFactory.cs b/src/OpenTelemetry/Trace/TracerFactory.cs index 628def9e1ee..e4bae9502ca 100644 --- a/src/OpenTelemetry/Trace/TracerFactory.cs +++ b/src/OpenTelemetry/Trace/TracerFactory.cs @@ -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; } /// public ITracer GetTracer(string name, string version = null) @@ -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); }