Skip to content

Commit

Permalink
Compress data dump response in instrumentation server
Browse files Browse the repository at this point in the history
  • Loading branch information
janos committed May 9, 2022
1 parent 56e0b66 commit ae895b6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
resenje.org/jsonhttp v0.2.0
resenje.org/logging v0.1.7
resenje.org/recovery v0.1.1
resenje.org/x v0.3.5
resenje.org/x v0.4.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -672,8 +672,8 @@ resenje.org/logging v0.1.7/go.mod h1:HRMBfynFd/bqNROK2r5JXDtamHQOlZS5VWT0VxpoH2Q
resenje.org/marshal v0.1.1/go.mod h1:P7Cla6Ju5CFvW4Y8JbRgWX1Hcy4L1w4qcCsyadO7G94=
resenje.org/recovery v0.1.1 h1:/mXWD5S97BKF2B1/GxRUnWRuX2ZK4/4vSO70vsO1IYc=
resenje.org/recovery v0.1.1/go.mod h1:3S6aCVKMJEWsSAb61oZTteaiqkIfQPTr1RdiWnRbhME=
resenje.org/x v0.3.5 h1:uIkam7ZLrbFdsNnzsz/lXjCHv3NFxgihPrLGOHk7Lss=
resenje.org/x v0.3.5/go.mod h1:nOviUu/3wDZdkiSQg2IhmVCHdxdzEJ+nvIZzftp19w0=
resenje.org/x v0.4.0 h1:kWNwNrjmlo7eRWV655SEhDSKpr2mVLdQBli8lLtz2dc=
resenje.org/x v0.4.0/go.mod h1:nOviUu/3wDZdkiSQg2IhmVCHdxdzEJ+nvIZzftp19w0=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
Expand Down
2 changes: 1 addition & 1 deletion server/instrumentation.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func newInstrumentationRouter(s *Server, setupFunc func(base, api *http.ServeMux
))
instrumentationRouter.Handle("/", http.HandlerFunc(textNotFoundHandler))
instrumentationRouter.Handle("/status", http.HandlerFunc(s.statusHandler))
instrumentationRouter.Handle("/data", datadump.Handler(s.dataDumpServices, s.name+"_"+s.Version(), s.logger))
instrumentationRouter.Handle("/data", datadump.Handler(s.dataDumpServices, s.name+"_"+s.Version(), s.logger, true))

instrumentationRouter.Handle("/debug/pprof/", http.HandlerFunc(pprof.Index))
instrumentationRouter.Handle("/debug/pprof/cmdline", http.HandlerFunc(pprof.Cmdline))
Expand Down

0 comments on commit ae895b6

Please sign in to comment.