mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 20:51:43 +00:00
#61619 's metrics export instrumentation doesn't work - unlike the tracing side, we have to do this when we create each export mechanism, the point where we provide a reader to the meter provider setup doesn't seem to work. Only the OTEL exporter gives us an actual `metric.Exporter` implementation so we only instrument that - Prometheus is for local dev and Prometheus service provides useful diagnostics, so this is ok ## Test plan ``` OTEL_GCP_PROJECT_ID=msp-testbed-test-77589aae45d0 sg run msp-example ``` <img width="1592" alt="image" src="https://github.com/sourcegraph/sourcegraph/assets/23356519/7ccc2312-069f-456b-b269-4a0ed85bf46c"> |
||
|---|---|---|
| .. | ||
| 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.