Skip to content

add WSMC transport observability - #3

Merged
ERroooooR merged 2 commits into
masterfrom
codex/wsmc-observability
Jul 20, 2026
Merged

ERroooooR merged 2 commits into
masterfrom
codex/wsmc-observability

Conversation

@ERroooooR

Copy link
Copy Markdown
Owner

What

Add production observability and current-client compatibility coverage for Gate's WSMC transport.

Implementation

  • OpenTelemetry counters for accepted/rejected requests, sessions, bytes, frames and transport events
  • histograms for handshake/session duration, write duration, coalesced batch size, pending bytes and adaptive frame target
  • low-cardinality labels only; client IP and literal virtual host are not metric labels
  • backpressure, close-flush, idle timeout and write-failure events
  • contract test based on rikka0w0/wsmc commit ba665af: RFC 6455 V13, binary messages, custom Host and 65536-byte frame cap
  • verifies multiple WSMC messages become one Minecraft byte stream and Gate output is re-sliced at the configured frame size
  • metrics documentation for OTLP/Prometheus collection

Validation

  • go test ./...
  • go vet ./...
  • Linux amd64 build
  • Linux 386 build

@ERroooooR
ERroooooR marked this pull request as ready for review July 13, 2026 16:38
@ERroooooR
ERroooooR merged commit 170d34a into master Jul 20, 2026
8 checks passed
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.

1 participant