Summary
The migration guide (section 12) documents the logging level migration from A365_OBSERVABILITY_LOG_LEVEL to OTEL_LOG_LEVEL, but doesn't explain that these are two independent log systems that control different things.
Issue
Users migrating will see both env vars and not understand which to use or why they exist separately:
| Env var |
What it controls |
Default |
Values |
OTEL_LOG_LEVEL |
OpenTelemetry SDK internals — instrumentation patching, span creation, exporter lifecycle |
WARN |
ALL, DEBUG, VERBOSE, INFO, WARN, ERROR, NONE |
A365_OBSERVABILITY_LOG_LEVEL |
A365 distro internals — token acquisition, span batching, export HTTP status, skipped spans |
none |
none, info, warn, error (pipe-separated combos like info|error) |
The migration guide section 12 maps old values to new values but implies OTEL_LOG_LEVEL replaces A365_OBSERVABILITY_LOG_LEVEL. In reality both still exist and serve different purposes. The migration guide should:
- Explain that
OTEL_LOG_LEVEL controls OTel SDK diagnostics (not A365 specific)
- Explain that
A365_OBSERVABILITY_LOG_LEVEL still exists and controls A365-specific diagnostics (token, export, span filtering)
- Clarify when to use which — e.g., use
A365_OBSERVABILITY_LOG_LEVEL=info to debug export failures, use OTEL_LOG_LEVEL=INFO to debug instrumentation issues
References
Summary
The migration guide (section 12) documents the logging level migration from
A365_OBSERVABILITY_LOG_LEVELtoOTEL_LOG_LEVEL, but doesn't explain that these are two independent log systems that control different things.Issue
Users migrating will see both env vars and not understand which to use or why they exist separately:
OTEL_LOG_LEVELWARNALL,DEBUG,VERBOSE,INFO,WARN,ERROR,NONEA365_OBSERVABILITY_LOG_LEVELnonenone,info,warn,error(pipe-separated combos likeinfo|error)The migration guide section 12 maps old values to new values but implies
OTEL_LOG_LEVELreplacesA365_OBSERVABILITY_LOG_LEVEL. In reality both still exist and serve different purposes. The migration guide should:OTEL_LOG_LEVELcontrols OTel SDK diagnostics (not A365 specific)A365_OBSERVABILITY_LOG_LEVELstill exists and controls A365-specific diagnostics (token, export, span filtering)A365_OBSERVABILITY_LOG_LEVEL=infoto debug export failures, useOTEL_LOG_LEVEL=INFOto debug instrumentation issuesReferences
src/shared/logging/logger.ts(OTEL_LOG_LEVEL)src/a365/logging.ts(A365_OBSERVABILITY_LOG_LEVEL)