Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jairad26 committed Oct 8, 2024
1 parent b368a84 commit edd7def
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions runtime/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ require (
github.com/getsentry/sentry-go v0.29.0
github.com/go-viper/mapstructure/v2 v2.2.1
github.com/goccy/go-json v0.10.3
github.com/golang-jwt/jwt/v5 v5.2.0
github.com/google/renameio v1.0.1
github.com/google/uuid v1.6.0
github.com/jackc/pgx/v5 v5.7.1
Expand Down
2 changes: 2 additions & 0 deletions runtime/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PU
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
github.com/golang-jwt/jwt/v5 v5.2.0 h1:d/ix8ftRUorsN+5eMIlF4T6J8CAt9rch3My2winC1Jw=
github.com/golang-jwt/jwt/v5 v5.2.0/go.mod h1:pqrtFR0X4osieyHYxtmOUWsAWrfe1Q5UVIyoH402zdk=
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
Expand Down
5 changes: 1 addition & 4 deletions runtime/httpserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,7 @@ func GetHandlerMux() http.Handler {
mux := http.NewServeMux()

// Register our main endpoints with instrumentation.
mux.Handle("/graphql", middleware.HandleJWT(metrics.InstrumentHandler(graphql.HandleGraphQLRequest, "graphql")))
mux.Handle("/admin", metrics.InstrumentHandler(handleAdminRequest, "admin"))
// Register our main endpoint with instrumentation.
mux.Handle("/graphql", metrics.InstrumentHandler(graphql.GraphQLRequestHandler, "graphql"))
mux.Handle("/graphql", metrics.InstrumentHandler(middleware.HandleJWT(graphql.GraphQLRequestHandler), "graphql"))

// Register metrics endpoint which uses the Prometheus scraping protocol.
// We do not instrument it with the InstrumentHandler so that any scraper (eg. OTel)
Expand Down
File renamed without changes.

0 comments on commit edd7def

Please sign in to comment.