mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 19:51:50 +00:00
Adds support to MSP runtime for health and version checking. Also splits up the `msp-example` service for better readability, and registers a Prometheus metrics exporter in local dev. Closes https://github.com/sourcegraph/sourcegraph/issues/58784 ## Test plan ``` ➜ curl localhost:9080/ Variable: 13% ➜ curl localhost:9080/-/healthz unauthorized% ➜ curl -H 'Authorization: bearer sekret' localhost:9080/-/healthz healthz: ok% ➜ curl localhost:9080/-/version dev% ```  |
||
|---|---|---|
| .. | ||
| api | ||
| background | ||
| batches | ||
| cliutil | ||
| codeintel | ||
| errors | ||
| gitservice | ||
| iterator | ||
| managedservicesplatform | ||
| output | ||
| pointers | ||
| process | ||
| servicecatalog | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
| tools.go | ||
Sourcegraph lib module
This directory is the root of a separate go module from the primary module rooted at sourcegraph/sourcegraph. This module exists to hold code that we want to reuse outside of the sourcegraph/sourcegraph repo.
Code in this module should not import from sourcegraph/sourcegraph or from other Sourcegraph repositories to avoid complicated dependency relationships. Instead consider moving code from elsewhere into this module.