private void AddSpan(SentrySqlSpanType type, string operation, KeyValuePair <string, object?> value) { _hub.ConfigureScope(scope => { if (scope.Transaction is { } transaction) { if (type == SentrySqlSpanType.Connection && transaction?.StartChild(operation) is { } connectionSpan) { SetOperationId(connectionSpan, value.GetProperty <Guid>(OperationKey)); }