dify/api/enterprise/telemetry
GareArc 5f6e90e4d2
feat(enterprise): Add OTEL logs export with span_id correlation
- Add ENTERPRISE_OTEL_LOGS_ENABLED and ENTERPRISE_OTLP_LOGS_ENDPOINT config options
- Implement EnterpriseLoggingHandler for log record translation with trace/span ID parsing
- Add LoggerProvider and BatchLogRecordProcessor for OTLP log export
- Correlate telemetry logs with spans via span_id_source parameter
- Attach log handler during enterprise telemetry initialization
2026-02-02 18:16:58 -08:00
..
entities feat(enterprise): Add OTEL telemetry with slim traces, metrics, and structured logs 2026-02-02 15:50:43 -08:00
__init__.py feat(enterprise): Add OTEL telemetry with slim traces, metrics, and structured logs 2026-02-02 15:50:43 -08:00
draft_trace.py feat(enterprise): Add OTEL telemetry with slim traces, metrics, and structured logs 2026-02-02 15:50:43 -08:00
enterprise_trace.py feat(enterprise): Add OTEL logs export with span_id correlation 2026-02-02 18:16:58 -08:00
event_handlers.py feat(enterprise): Add OTEL telemetry with slim traces, metrics, and structured logs 2026-02-02 15:50:43 -08:00
exporter.py feat(enterprise): Add OTEL logs export with span_id correlation 2026-02-02 18:16:58 -08:00
id_generator.py feat(enterprise): Add OTEL telemetry with slim traces, metrics, and structured logs 2026-02-02 15:50:43 -08:00
telemetry_log.py feat(enterprise): Add OTEL logs export with span_id correlation 2026-02-02 18:16:58 -08:00