Commits on Source (14)
-
Oswaldo Ferreira authored
This introduces the first sample profiler driver (Stackdriver), allowing initializing any Go service that uses labkit (and upgrades to the new version) with the GITLAB_CONTINUOUS_PROFILING env variable as such: ``` GITLAB_CONTINUOUS_PROFILING="stackdriver?service=gitaly&service_version=1.0.1&project_id=test-123" go run file.go ``` Passing GITLAB_CONTINUOUS_PROFILING=stackdriver (without further params) will make the Stackdriver profiler guess these values based certain environment criterias described at https://godoc.org/cloud.google.com/go/profiler#Config. In order to use the profiler, users of labkit will need to compile it with the `-tags continuous_profiler_stackdriver`, otherwise no dependencies will be added and GITLAB_CONTINUOUS_PROFILING will take no effect.
-
Oswaldo Ferreira authored
-
Oswaldo Ferreira authored
This change allows initializing the Go Continuous Profiler without passing a Prometheus address. Before that, the Serve function would return an error before having a chance to start the profiler.
-
Andrew Newdigate authored
Init Go Continuous Profiling despite listener configuration See merge request !46
-
Paul Okstad authored
This exports correlation ID generation and context injection functions for use in Praefect. The ID generation is needed to create a correlation ID consistent with existing practices. The injection is needed to enable injection outside of gRPC interceptors (Gitaly needs this ability when fetching a persisted replication job from the datastore). See issue gitaly#2461 for more details. Relates to gitaly!1869 (comment 297124766)
-
Zeger-Jan van de Weg authored
Export correlation generation and injection functions See merge request !48
-
Igor authored
-
Igor authored
since JSON currently uses an int, we should keep that -- as changing the type may make our logging pipeline unhappy.
-
Igor authored
-
Igor authored
-
Igor authored
-
Igor authored
we were getting failures for: go: gopkg.in/fsnotify.v1@v1.4.9: go.mod has non-....v1 module path "github.com/fsnotify/fsnotify" at revision v1.4.9 go get: error loading module requirements go 1.13 appears to handle this better.
-
fix formatting of latency in combined access log See merge request !49
Showing
- .gitlab-ci.yml 2 additions, 1 deletion.gitlab-ci.yml
- compile.sh 1 addition, 0 deletionscompile.sh
- correlation/generator.go 3 additions, 0 deletionscorrelation/generator.go
- correlation/grpc/client_interceptors.go 7 additions, 0 deletionscorrelation/grpc/client_interceptors.go
- go.mod 17 additions, 5 deletionsgo.mod
- go.sum 193 additions, 10 deletionsgo.sum
- log/combined_formatter.go 2 additions, 2 deletionslog/combined_formatter.go
- log/combined_formatter_test.go 3 additions, 3 deletionslog/combined_formatter_test.go
- monitoring/doc.go 38 additions, 2 deletionsmonitoring/doc.go
- monitoring/null_profiler.go 7 additions, 0 deletionsmonitoring/null_profiler.go
- monitoring/profiler.go 71 additions, 0 deletionsmonitoring/profiler.go
- monitoring/profiler_test.go 172 additions, 0 deletionsmonitoring/profiler_test.go
- monitoring/serve.go 8 additions, 0 deletionsmonitoring/serve.go
- monitoring/serve_options.go 1 addition, 3 deletionsmonitoring/serve_options.go
- monitoring/serve_options_test.go 3 additions, 2 deletionsmonitoring/serve_options_test.go
- test.sh 1 addition, 0 deletionstest.sh
- vendor/cloud.google.com/go/LICENSE 202 additions, 0 deletionsvendor/cloud.google.com/go/LICENSE
- vendor/cloud.google.com/go/compute/metadata/.repo-metadata.json 12 additions, 0 deletions.../cloud.google.com/go/compute/metadata/.repo-metadata.json
- vendor/cloud.google.com/go/compute/metadata/metadata.go 525 additions, 0 deletionsvendor/cloud.google.com/go/compute/metadata/metadata.go
- vendor/cloud.google.com/go/internal/version/update_version.sh 19 additions, 0 deletions...or/cloud.google.com/go/internal/version/update_version.sh
module gitlab.com/gitlab-org/labkit | ||
require ( | ||
cloud.google.com/go v0.50.0 | ||
github.com/certifi/gocertifi v0.0.0-20180905225744-ee1a9a0726d2 // indirect | ||
github.com/client9/reopen v1.0.0 | ||
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd // indirect | ||
github.com/getsentry/raven-go v0.1.0 | ||
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7 // indirect | ||
github.com/google/go-cmp v0.4.0 // indirect | ||
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc // indirect | ||
github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 | ||
github.com/jstemmer/go-junit-report v0.9.1 // indirect | ||
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect | ||
github.com/lightstep/lightstep-tracer-go v0.15.6 | ||
github.com/onsi/ginkgo v1.7.0 // indirect | ||
... | ... | @@ -13,18 +18,25 @@ require ( |
github.com/opentracing/opentracing-go v1.0.2 | ||
github.com/philhofer/fwd v1.0.0 // indirect | ||
github.com/prometheus/client_golang v1.0.0 | ||
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 | ||
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 | ||
github.com/sebest/xff v0.0.0-20160910043805-6c115e0ffa35 | ||
github.com/sirupsen/logrus v1.3.0 | ||
github.com/stretchr/testify v1.3.0 | ||
github.com/stretchr/testify v1.4.0 | ||
github.com/tinylib/msgp v1.0.2 // indirect | ||
github.com/uber-go/atomic v1.3.2 // indirect | ||
github.com/uber/jaeger-client-go v2.15.0+incompatible | ||
github.com/uber/jaeger-lib v1.5.0 // indirect | ||
go.opencensus.io v0.22.2 // indirect | ||
go.uber.org/atomic v1.3.2 // indirect | ||
golang.org/x/crypto v0.0.0-20190228161510-8dd112bcdc25 // indirect | ||
golang.org/x/sys v0.0.0-20190306220723-b294cbcfc56d // indirect | ||
google.golang.org/grpc v1.16.0 | ||
golang.org/x/exp v0.0.0-20191227195350-da58074b4299 // indirect | ||
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa // indirect | ||
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect | ||
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1 // indirect | ||
golang.org/x/tools v0.0.0-20200117161641-43d50277825c // indirect | ||
google.golang.org/api v0.15.0 | ||
google.golang.org/appengine v1.6.5 // indirect | ||
google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba // indirect | ||
google.golang.org/grpc v1.24.0 | ||
gopkg.in/DataDog/dd-trace-go.v1 v1.7.0 | ||
) | ||
... | ... |
This diff is collapsed.
monitoring/null_profiler.go
0 → 100644
monitoring/profiler.go
0 → 100644
monitoring/profiler_test.go
0 → 100644
vendor/cloud.google.com/go/LICENSE
0 → 100644