sourcegraph/lib/managedservicesplatform
Robert Lin 5fa93155fc
telemetry-gateway: migrate to MSP runtime (#58814)
This change migrates Telemetry Gateway to use the MSP runtime library for service initialization, which now handles Sentry, OpenTelemetry, etc and offers a simpler interface for defining services.

Because we now only expose 1 port (i.e. no debugserver port), I've made the default in local dev `6080`, because my browser was complaining about `10080`.

## Test plan

```sh
sg run telemetry-gateway
curl http://localhost:6080/-/version
# 0.0.0+dev%                                                  
curl http://localhost:6080/-/healthz
# unauthorized%                                              
curl -H 'Authorization: bearer sekret' http://localhost:6080/-/healthz
# healthz: ok%                                            
```

Also visit http://localhost:6080/debug/grpcui/ and http://localhost:6080/metrics, which are expected to be enabled in local dev.

Then try with full Sourcegraph stack:

```
sg start
```

<img width="660" alt="image" src="https://github.com/sourcegraph/sourcegraph/assets/23356519/9e799c58-4d02-4752-9f9f-da3108ba762f">
2023-12-08 12:14:34 -08:00
..
bigquerywriter dev/msp: add BigQuery support (#58541) 2023-12-04 18:40:18 -08:00
runtime telemetry-gateway: migrate to MSP runtime (#58814) 2023-12-08 12:14:34 -08:00
BUILD.bazel lib/managedservicesplatform: init MSP runtime, add lib/background from internal/goroutine (#57651) 2023-10-28 03:08:12 +00:00
go.mod msp/runtime: add diagnostics handlers (#58762) 2023-12-06 10:54:09 -08:00
go.sum dev/msp: add BigQuery support (#58541) 2023-12-04 18:40:18 -08:00
managedservicesplatform.go lib/managedservicesplatform: init MSP runtime, add lib/background from internal/goroutine (#57651) 2023-10-28 03:08:12 +00:00