chore: silence otelsdk warnings across build paths #105
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/silence-otel-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Silences the recurring
OpenTelemetry error: there is no package called 'otelsdk'warnings during builds.Root cause
The
build-env-*images configure an OTel exporter (traces/logs/metrics), butotelsdk(the R OTel SDK backend) isn't installed. pak'sotelinstrumentation therefore tries to loadotelsdkon every run and logs the error, falling back to a no-op.OTEL_SDK_DISABLED=true(already set inbuild-one.Dockerfile) does not help — the Rotelpackage ignores it and gates purely onOTEL_R_<SIGNAL>_EXPORTER(then the standardOTEL_<SIGNAL>_EXPORTER). When that resolves to a real exporter (otlp/http/…) with no SDK present, you get the error.Fix
Set
OTEL_R_TRACES_EXPORTER,OTEL_R_LOGS_EXPORTER, andOTEL_R_METRICS_EXPORTERtononeso the R otel providers are clean no-ops:docker/build-one.Dockerfile— exported alongside the existing OTel var..crow/process-updates.yaml,weekly-rebuild-missing.yaml,build-all-versions.yaml,build-all-versions-install-deps.yaml— added to each step'senvironmentblock.Using the R-specific variables (not the standard
OTEL_*_EXPORTER) keeps OTel intact for any non-R tooling in the images.