Skip to content

Split connection-provider metrics from mux metrics#229

Merged
hehaifengcn merged 1 commit into
mainfrom
haifengh/metrics
May 13, 2026
Merged

Split connection-provider metrics from mux metrics#229
hehaifengcn merged 1 commit into
mainfrom
haifengh/metrics

Conversation

@hehaifengcn
Copy link
Copy Markdown
Collaborator

@hehaifengcn hehaifengcn commented May 13, 2026

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

What was changed

Why?

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

Replace MuxDialFailed / MuxDialSuccess with EstablisherError, and
the listener-side use of MuxErrors with ReceiverError. The new
counters name the layer they describe (the connection provider),
which is distinct from the mux session metrics they were
previously bundled with. classifyError's fallback label is also
renamed from "unclassified error" to "unknown" for shorter and
OCI/Prometheus-friendlier tag values.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hehaifengcn hehaifengcn requested a review from a team as a code owner May 13, 2026 21:05
metrics.EstablisherError.WithLabelValues(p.metricLabels...).Inc()
return nil, err
}
metrics.MuxDialSuccess.WithLabelValues(p.metricLabels...).Inc()
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this dups with MuxConnectionEstablish

@hehaifengcn hehaifengcn merged commit ce7d6ac into main May 13, 2026
5 checks passed
@hehaifengcn hehaifengcn deleted the haifengh/metrics branch May 13, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants