internal static IRequestSpan DispatchSpan(this IRequestSpan parentSpan)
        {
            var childSpan = parentSpan.ChildSpan(InnerRequestSpans.DispatchSpan.Name);

            if (childSpan.CanWrite)
            {
                childSpan.SetAttribute(InnerRequestSpans.EncodingSpan.Attributes.System.Key,
                                       InnerRequestSpans.EncodingSpan.Attributes.System.Value);
                childSpan.SetAttribute(InnerRequestSpans.DispatchSpan.Attributes.NetTransport.Key,
                                       InnerRequestSpans.DispatchSpan.Attributes.NetTransport.Value);
            }

            return(childSpan);
        }
        protected async Task <string> SaslStep(IConnection connection, string message, IRequestSpan span, CancellationToken token)
        {
            using var childSpan = span.ChildSpan(OuterRequestSpans.ServiceSpan.Internal.SaslStep);
            using var op        = new SaslStep()
                  {
                      Key     = "SCRAM-SHA1",//MechanismType.GetDescription(),
                      Content = message,
                      Timeout = Timeout,
                      Span    = childSpan,
                  };

            using var ctp = CancellationTokenPairSource.FromTimeout(Timeout, token);
            OperationConfigurator.Configure(op, SaslOptions.Instance);
            return(await SendAsync(op, connection, ctp.TokenPair).ConfigureAwait(false));
        }