public void Should_write_provided_operation_name_on_dispose_if_nothing_else_was_called()
        {
            var specializedBuilder = BeginSpan("op");

            builder.DidNotReceive().SetAnnotation(WellKnownAnnotations.Common.Operation, Arg.Any <string>());

            specializedBuilder.Dispose();

            builder.Received(1).SetAnnotation(WellKnownAnnotations.Common.Operation, "op");
        }
        public void WithAnnotations_should_filter_out_null_values_by_default()
        {
            enrichedTracer = baseTracer.WithAnnotations(
                new Dictionary <string, object>
            {
                { "key1", "value1" },
                { "key2", null }
            });

            enrichedTracer.BeginSpan();

            spanBuilder.Received().SetAnnotation("key1", "value1", Arg.Any <bool>());
            spanBuilder.DidNotReceive().SetAnnotation("key2", Arg.Any <string>(), Arg.Any <bool>());
        }