var streamError *StreamError
if errors.As(err, &streamError) {
int64(1),
metrics.ServiceErrorTypeTag(streamError.cause),
metrics.FromClusterIDTag(fromClusterKey.ClusterID),
metrics.ToClusterIDTag(toClusterKey.ClusterID),
)
logger.Warn("ReplicationStreamError", tag.Error(err))
} else {
metrics.ReplicationServiceError.With(metricsHandler).Record(