Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • replace-reopen
  • update-to-go-1-21-newer-go-mod
  • ashmckenzie/disable-gitaly-backwards-compat
  • refactor/remove-compat
  • go-mod-1.18
  • kassio/test-pages-backword-compatibility
  • mk-request-context-fields
  • 40-logging-roundtripper
  • ash2k/1.17-test
  • secure-archive-utilities
  • dependency-scanning
  • extend-examples
  • jarv-master-patch-93716
  • log-context-metadata-from-upstream
  • enable-pipelines-for-merge-requests
  • tracing-exclude-liveness-readiness
  • client-identity
  • reviewer-process
  • opentelemetry
  • v1.22.0
  • v1.21.2
  • v1.21.1
  • v1.21.0
  • v1.20.0
  • v1.19.0
  • v1.18.0
  • v1.17.0
  • v1.16.1
  • v1.16.0
  • v1.15.0
  • v1.14.0
  • v1.13.0
  • v1.12.0
  • v1.11.0
  • v1.10.0
  • v1.9.0
  • v1.8.0
  • v1.7.0
  • v1.6.0
40 results

test.sh

  • Oswaldo Ferreira's avatar
    416f0bbc
    Add stackdriver profiler support · 416f0bbc
    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.
    416f0bbc
    History
    Add stackdriver profiler support
    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.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.