File tree 4 files changed +9
-11
lines changed 4 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ require (
14
14
github.com/go-chi/httplog v0.2.5
15
15
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
16
16
github.com/google/uuid v1.3.1
17
- github.com/gorilla/mux v1.8.1
18
17
github.com/gorilla/sessions v1.2.0
19
18
github.com/gorilla/websocket v1.5.0
20
19
github.com/icza/bitio v1.1.0
Original file line number Diff line number Diff line change @@ -455,8 +455,6 @@ github.com/googleapis/gax-go/v2 v2.11.0 h1:9V9PWXEsWnPpQhu/PeQIkS4eGzMlTLGgt80cU
455
455
github.com/googleapis/gax-go/v2 v2.11.0 /go.mod h1:DxmR61SGKkGLa2xigwuZIQpkCI2S5iydzRfb3peWZJI =
456
456
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8 /go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g =
457
457
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 /go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY =
458
- github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY =
459
- github.com/gorilla/mux v1.8.1 /go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ =
460
458
github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ =
461
459
github.com/gorilla/securecookie v1.1.1 /go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4 =
462
460
github.com/gorilla/sessions v1.2.0 h1:S7P+1Hm5V/AT9cjEcUD5uDaQSX0OE577aCXgoaKpYbQ =
Original file line number Diff line number Diff line change 19
19
package monitoring
20
20
21
21
import (
22
+ "net/http"
23
+
22
24
sentryhttp "github.com/getsentry/sentry-go/http"
23
- "github.com/gorilla/mux"
24
25
)
25
26
26
- func Middleware () mux. MiddlewareFunc {
27
+ func Middleware () func (http. Handler ) http. Handler {
27
28
return sentryhttp .New (sentryhttp.Options {}).Handle
28
29
}
Original file line number Diff line number Diff line change @@ -21,16 +21,17 @@ package main
21
21
import (
22
22
"context"
23
23
"fmt"
24
- "github.com/dapperlabs/flow-playground-api"
24
+ "log"
25
+ "net/http"
26
+ "strings"
27
+ "time"
28
+
29
+ playground "github.com/dapperlabs/flow-playground-api"
25
30
"github.com/dapperlabs/flow-playground-api/server/config"
26
31
"github.com/dapperlabs/flow-playground-api/server/ping"
27
32
"github.com/dapperlabs/flow-playground-api/telemetry"
28
33
"github.com/prometheus/client_golang/prometheus/promhttp"
29
34
"go.opentelemetry.io/otel/sdk/trace"
30
- "log"
31
- "net/http"
32
- "strings"
33
- "time"
34
35
35
36
"github.com/go-chi/httplog"
36
37
@@ -170,7 +171,6 @@ func main() {
170
171
171
172
r .Use (httpcontext .Middleware ())
172
173
r .Use (sessions .Middleware (cookieStore ))
173
- r .Use (monitoring .Middleware ())
174
174
175
175
r .Handle (
176
176
"/" ,
You can’t perform that action at this time.
0 commit comments