Repository navigation
Default OTEL_*_EXPORTER to otlp in OTLP layerFromConfig - #10232
schutzelaars wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: b86793d The changes in this PR will be included in the next version bump. This PR includes changesets to release 33 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
7a72378 to
b072fc3
Compare
|
Thanks for the clear report and for putting this PR together. We've decided not to change the default. In Effect, each signal stays off until it is explicitly enabled, so exporting it needs both an endpoint and #10269 resolves #10231 instead. It documents the rule and the difference from the spec on all four |
Otlp.layerFromConfigand theOtlpTracer,OtlpLoggerandOtlpMetricslayerFromConfiglayers exported a signal only whenOTEL_<SIGNAL>_EXPORTERcontainedotlp. An unset variable counted as an empty list, so setting onlyOTEL_EXPORTER_OTLP_ENDPOINTexported nothing, with no warning. The OpenTelemetry spec defaults these variables tootlp, and the JS and Go SDKs do the same.The default is now
otlp. A value withoutotlp, such asnone, still turns the signal off, and nothing is exported without an endpoint, as before. The JSDoc of the four layers now states both rules.Behaviour change: a process that sets an OTLP endpoint but leaves
OTEL_*_EXPORTERunset now exports. SetOTEL_TRACES_EXPORTER,OTEL_METRICS_EXPORTERorOTEL_LOGS_EXPORTERtononeto keep a signal off.The new endpoint-only test in
OtlpConfig.test.tsfails onmain. The existingOtlpExportertest coversnone. Observability tests,pnpm lint-fix,pnpm jsdocs --checkandpnpm checkpass.Closes #10231
Closes EFF-3233