GareArc
83f5850d0a
refactor(telemetry): add resolved_parent_context property and fix edge cases
...
- Add resolved_parent_context property to BaseTraceInfo for reusable parent context extraction
- Refactor enterprise_trace.py to use property instead of duplicated dict plucking (~19 lines eliminated)
- Fix UUID validation in exporter.py with specific error logging for invalid trace correlation IDs
- Add error isolation in event_handlers.py to prevent telemetry failures from breaking user operations
- Replace pickle-based payload_fallback with JSON storage rehydration for security
- Update TelemetryEnvelope to use Pydantic v2 ConfigDict with extra='forbid'
- Update tests to reflect contract changes and new error handling behavior
2026-03-01 19:33:59 -08:00
yunlu.wen
7a92c1764f
fix token label
2026-03-02 10:10:01 +08:00
GareArc
9952a17fed
fix(telemetry): use URL scheme instead of API key for gRPC TLS detection
...
- Change insecure parameter from API key-based to URL scheme-based detection
- https:// endpoints now correctly use TLS (insecure=False)
- All other endpoints (http://, no scheme) use insecure=True
- Update tests to reflect URL scheme-based logic
- Remove incorrect documentation claiming API key controls TLS
2026-03-01 02:24:25 -08:00
heyszt
10b59cd6ba
add service layer OTel Span ( #28582 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-05 21:58:32 +08:00
Asuka Minato
32c715c4d0
rm type ignore ( #25715 )
...
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: -LAN- <laipz8200@outlook.com>
2025-10-21 11:26:58 +08:00
Asuka Minato
bb6a331490
change all to httpx ( #26119 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-10-10 23:41:16 +08:00
耐小心
89821d66bb
feat: add HTTPX client instrumentation for OpenTelemetry ( #26651 )
2025-10-09 09:24:47 +08:00
Bowen Liang
7b379e2a61
chore: apply ty checks on api code with script and ci action ( #24653 )
2025-09-02 16:05:13 +08:00
Bowen Liang
39064197da
chore: cleanup unnecessary mypy suppressions on imports ( #24712 )
2025-08-28 23:17:25 +08:00
Yongtao Huang
fa753239ad
Refactor: use logger = logging.getLogger(__name__) in logging ( #24515 )
...
Co-authored-by: Yongtao Huang <99629139+hyongtao-db@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
2025-08-26 18:10:31 +08:00
Bowen Liang
d8000251ff
chore: apply static type checks on celery async task dispatches and imports ( #24418 )
2025-08-24 23:07:22 +08:00
Guangdong Liu
1abf1240b2
refactor: replace try-except blocks with contextlib.suppress for cleaner exception handling ( #24284 )
2025-08-21 18:18:49 +08:00
heyszt
3b5130b03d
add otel instrument for redis and http request ( #23371 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-05 11:14:51 +08:00
NeatGuyCoding
853c97a910
minor bug fix: wrong default metrics endpoint ( #22535 )
2025-07-17 13:49:41 +08:00
heyszt
f082452c9b
feat: add otel endpoint config ( #22492 )
2025-07-16 18:24:17 +08:00
-LAN-
4cb50f1809
feat(libs): Introduce extract_tenant_id ( #22086 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-07-09 17:45:56 +08:00
Bowen Liang
1a7ad195f0
refactor: define the Dify project version in pyproject.toml ( #20910 )
2025-07-01 12:07:24 +08:00
AichiB7A
2b81b6673f
[Observability] Add type check and try-except in otel ( #20319 )
2025-05-27 21:17:45 +08:00
-LAN-
4c46f04d77
fix: Enhances tenant ID handling in telemetry ( #20304 )
...
Signed-off-by: -LAN- <laipz8200@outlook.com>
2025-05-27 17:44:40 +08:00
XlKsyt
85eb55de37
feat(extension): support otel grpc exporter ( #19686 )
2025-05-14 22:37:27 +08:00
AichiB7A
c4c20f6ed5
[Observability] Update counter to include http method and target ( #19297 )
...
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-07 09:17:26 +08:00
AichiB7A
8299614e60
[Observability][Bugfix] Fix expected an instance of Token, got None error in OpenTelemetry ( #18934 )
2025-04-28 10:31:13 +08:00
AichiB7A
7613d9dc33
[Observability] Convert exception logging into span in OpenTelemetry ( #18821 )
2025-04-27 14:39:47 +08:00
AichiB7A
de750a67ec
[Observability] feat: add metrics of http response ( #18499 )
2025-04-22 13:19:22 +08:00
AichiB7A
6c167038af
[Observability] Instrument with celery ( #18029 )
2025-04-15 11:35:34 +08:00
AichiB7A
5f8d20b5b2
[Observability] Integrate OpenTelemetry ( #17627 )
2025-04-11 17:04:06 +08:00