feat(otel): make otel logging level configurable#7271
Merged
codefromthecrypt merged 2 commits intomainfrom Feb 17, 2026
Merged
Conversation
Signed-off-by: Adrian Cole <adrian@tetrate.io>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR makes the OTLP log filter level configurable (instead of hardcoded to WARN) by resolving a level from environment variables with precedence RUST_LOG → OTEL_LOG_LEVEL → default info.
Changes:
- Added
parse_level()+otel_logs_level()to resolve an OTLP log level from env vars. - Updated the OTLP logs filter to use the resolved level.
- Extended the OTLP tests and generalized env cleanup to include
OTEL_LOG_LEVELand override keys.
| } | ||
|
|
||
| fn clear_otel_env(overrides: &[(&str, &str)]) -> OtelTestGuard { | ||
| fn clear_otel_env(overrides: &[(&'static str, &'static str)]) -> OtelTestGuard { |
Collaborator
Author
There was a problem hiding this comment.
rejigged this so that otel tests that now interact with RUST_LOG can be tested without conflating that generally with an otel env
michaelneale
approved these changes
Feb 17, 2026
jh-block
added a commit
that referenced
this pull request
Feb 18, 2026
* origin/main: (49 commits) chore: show important keys for provider configuration (#7265) fix: subrecipe relative path with summon (#7295) fix extension selector not displaying the correct enabled extensions (#7290) Use the working dir from the session (#7285) Fix: Minor logging uplift for debugging of prompt injection mitigation (#7195) feat(otel): make otel logging level configurable (#7271) docs: add documentation for Top Of Mind extension (#7283) Document gemini 3 thinking levels (#7282) docs: stream subagent tool calls (#7280) Docs: delete custom provider in desktop (#7279) Everything is streaming (#7247) openai: responses models and hardens event streaming handling (#6831) docs: disable ai session naming (#7194) Added cmd to validate bundled extensions json (#7217) working_dir usage more clear in add_extension (#6958) Use Canonical Models to set context window sizes (#6723) Set up direnv and update flake inputs (#6526) fix: restore subagent tool call notifications after summon refactor (#7243) fix(ui): preserve server config values on partial provider config save (#7248) fix(claude-code): allow goose to run inside a Claude Code session (#7232) ...
aharvard
added a commit
that referenced
this pull request
Feb 18, 2026
* origin/main: feat: add GOOSE_SUBAGENT_MODEL and GOOSE_SUBAGENT_PROVIDER config options (#7277) fix(openai): support "reasoning" field alias in streaming deltas (#7294) fix(ui): revert app-driven iframe width and send containerDimensions per ext-apps spec (#7300) New OpenAI event (#7301) ci: add fork guards to scheduled workflows (#7292) fix: allow ollama input limit override (#7281) chore: show important keys for provider configuration (#7265) fix: subrecipe relative path with summon (#7295) fix extension selector not displaying the correct enabled extensions (#7290) Use the working dir from the session (#7285) Fix: Minor logging uplift for debugging of prompt injection mitigation (#7195) feat(otel): make otel logging level configurable (#7271) docs: add documentation for Top Of Mind extension (#7283) Document gemini 3 thinking levels (#7282) docs: stream subagent tool calls (#7280) Docs: delete custom provider in desktop (#7279) # Conflicts: # ui/desktop/src/components/McpApps/McpAppRenderer.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Make the OTLP log filter level configurable instead of hardcoded to
WARN. Follows the Rust community pattern:RUST_LOG→OTEL_LOG_LEVEL→ defaultinfo.Type of Change
AI Assistance
Testing
No exporter — no OTel output in console:
Default (info) — shows INFO log records:
WARN only — no INFO log records in output:
Related Issues
Continues ENV support from #7144