fix(tracing): treat resource detector errors as non-fatal

processOwnerDetector calls os/user.Current(), which fails in non-cgo
builds when the running UID has no /etc/passwd entry and $USER is unset
(common on hardened/distroless containers). It returns a plain error,
not ErrPartialResource, so the previous gate let the error escape and
SetupSDK aborted process startup.

Resource detection is documented as best-effort; downgrade any detector
error to a warning and fall back to an empty resource if the SDK returns
nil. The signature is preserved.
This commit is contained in:
2026-05-02 22:00:09 -07:00
parent 82e7f4398b
commit 988e07ade5
2 changed files with 16 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
set -euo pipefail
go install github.com/goreleaser/goreleaser/v2@v2.14.1
go install github.com/goreleaser/goreleaser/v2@v2.15.4
if [ ! -z "${harbor_username:-}" ]; then
DOCKER_FILE=~/.docker/config.json