feat: label build identity in metrics
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"os"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
@@ -105,6 +106,9 @@ func TestRuntimeObservationDoesNotExposeErrors(t *testing.T) {
|
||||
t.Fatal("missing runtime evidence", want)
|
||||
}
|
||||
}
|
||||
if !strings.Contains(out, `orbit_build_info{go_version="`+runtime.Version()+`",revision="unknown",version="dev"} 1`) {
|
||||
t.Fatal("missing build identity")
|
||||
}
|
||||
if strings.Contains(out, "private-dsn") {
|
||||
t.Fatal("error data leaked")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user