You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhance MelleaLogger with additional logging handlers for flexible log routing to multiple destinations: stdout (console), file, OTLP logs endpoint, and HTTP webhooks #460
In order to get an MVP of OTLP logs in time for our next release I will be picking up this sub-issue first and only partially implementing it. I've asked Bob to detail out what work will be remaining after I finish my MVP implementation, that work would then be handled after the other sub-issues:
Implementation Split: MVP vs. Full Feature
This issue is being implemented in two phases to deliver value incrementally.
Phase 1: MVP - OTLP Export ✅ (Current Work)
What's being implemented:
✅ OTLPLogHandler - Export logs via OpenTelemetry Protocol
I have the MVP work done and ready locally, but due to issues with the docs being built on top of #610 I was not able to commit it to main without lots of git conflict issues. So I will open a PR once that PR is merged and I can rebase the branch
changed the title [-]Enhance FancyLogger with additional logging handlers for flexible log routing to multiple destinations: stdout (console), file, OTLP logs endpoint, and HTTP webhooks[/-][+]Enhance MelleaLogger with additional logging handlers for flexible log routing to multiple destinations: stdout (console), file, OTLP logs endpoint, and HTTP webhooks[/+]on Apr 22, 2026
Activity
ajbozarth commentedon Mar 9, 2026
In order to get an MVP of OTLP logs in time for our next release I will be picking up this sub-issue first and only partially implementing it. I've asked Bob to detail out what work will be remaining after I finish my MVP implementation, that work would then be handled after the other sub-issues:
Implementation Split: MVP vs. Full Feature
This issue is being implemented in two phases to deliver value incrementally.
Phase 1: MVP - OTLP Export ✅ (Current Work)
What's being implemented:
OTLPLogHandler- Export logs via OpenTelemetry ProtocolMELLEA_LOGS_ENABLED,MELLEA_LOGS_OTLP,MELLEA_LOGS_CONSOLE)FancyLoggerEnvironment Variables (MVP):
Rationale: Solves primary user pain point (logs buried in console). Users can search/filter logs in observability UI.
Phase 2: Enhanced Handlers & Configuration ⏸️ (Deferred)
Remaining features from original issue:
RotatingFileHandler - File output with rotation
MELLEA_LOG_FILE=/path/to/logs/mellea.logMELLEA_LOG_FILE_MAX_BYTES=10485760(default: 10MB)MELLEA_LOG_FILE_BACKUP_COUNT=5(default: 5)Enhanced
configure_logging()functionEnhanced webhook handler
FLOGenv var withMELLEA_LOG_WEBHOOK=http://endpointTrace context and Mellea context integration (blocked by Create a custom
logging.Filterthat automatically extracts the current OpenTelemetry trace context and injectstrace_idandspan_idinto every log record #458 and Implement a contextvars-based system to carrysession_id,request_id,model_id, andsampling_iterationthrough async flows #459)logging.Filterthat automatically extracts the current OpenTelemetry trace context and injectstrace_idandspan_idinto every log record #458)session_id,request_id,model_id, andsampling_iterationthrough async flows #459)Why deferred:
logging.Filterthat automatically extracts the current OpenTelemetry trace context and injectstrace_idandspan_idinto every log record #458 and Implement a contextvars-based system to carrysession_id,request_id,model_id, andsampling_iterationthrough async flows #459Phase 2 Acceptance Criteria:
MELLEA_LOG_WEBHOOKlogging.Filterthat automatically extracts the current OpenTelemetry trace context and injectstrace_idandspan_idinto every log record #458)session_id,request_id,model_id, andsampling_iterationthrough async flows #459)ajbozarth commentedon Mar 10, 2026
I have the MVP work done and ready locally, but due to issues with the docs being built on top of #610 I was not able to commit it to main without lots of git conflict issues. So I will open a PR once that PR is merged and I can rebase the branch
ajbozarth commentedon Mar 13, 2026
#635 has merged including the Phase 1 MVP. I will come back to this for Phase 2 once I've finished the previous sub-issues.
[-]Enhance FancyLogger with additional logging handlers for flexible log routing to multiple destinations: stdout (console), file, OTLP logs endpoint, and HTTP webhooks[/-][+]Enhance MelleaLogger with additional logging handlers for flexible log routing to multiple destinations: stdout (console), file, OTLP logs endpoint, and HTTP webhooks[/+]