Conversation
Signed-off-by: yosrixp <yosrixp@yahoo.com>
MartinTrojans
approved these changes
Apr 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MCP OAuth Proxy: application metrics (
mop_*)Instrumentation: Custom OpenTelemetry Metrics via
GlobalOpenTelemetry.getMeter("mcp-oauth-proxy")inOauthProxyMetrics(Quarkusquarkus.otel.metrics.enabled). Counters, histograms (explicit second buckets), and an up/down gauge for in-flight HTTP; export follows the app’s OTLP pipeline into Chronosphere / Prometheus-style series (mop_*_total,mop_*_seconds_bucket/_sum/_count).Coverage: HTTP 4xx/5xx and aggregate errors; token path (issuance, auth-code / refresh / client-credentials grants, authorize redirect); UserInfo requests and duration; E2E token exchange and per-step exchange latency; upstream HTTP latency; retries; dynamic client registration; OIDC discovery; cross-region Dynamo auth-code fallback (triggered / exhausted) and cross-region Dynamo failures; auth-code validation failures (PKCE, binding, replay, etc.).
Labels: Shared dimensions include
oauth_provider,oauth_client,oauth_grant_type,outcome, routes, HTTP status,exchange_step,upstream_endpoint, regions for fallback, etc.OauthProviderLabel/OauthClientLabelnormalize blanks tounknownand canonicalize known IdPs;TelemetryProviderResolvermaps RFC 8707 resource URIs to the same provider semantics as token exchange (e.g. auth-code validation metrics).TelemetryJaxrsFilterties HTTP error metrics to request context (route, provider, client).MetricsRegionProvidersupplies primary region for relevant series.Bootstrap: On startup, zero samples register selected instruments so empty label combinations appear in backends where needed (with follow-ups so token issuance does not emit an all-empty series).