public void ShouldFallbackWhenInjectingWithFaultyCodec() { Tracer tracer = new Tracer.Builder("TracerResiliencyTestService") .WithReporter(new InMemoryReporter()) .WithSampler(new ConstSampler(true)) .RegisterCodec(BuiltinFormats.TextMap, new FaultyCodec()) .Build(); ISpanContext context = tracer.BuildSpan("test-span").Start().Context; tracer.Inject(context, BuiltinFormats.TextMap, new NoopTextMap()); }