GareArc
|
ff877ee39c
|
fix(telemetry): add resolved_trace_id property to eliminate trace_id inconsistencies
Add computed property to BaseTraceInfo that provides intelligent fallback:
1. External trace_id (from X-Trace-Id header)
2. workflow_run_id (for workflow-related traces)
3. message_id (as final fallback)
This ensures attribute dify.trace_id always matches log-level trace_id,
eliminating inconsistencies where attribute was null but log-level had value.
Changes:
- Add resolved_trace_id property to BaseTraceInfo (trace_entity.py)
- Replace 4 direct trace_id attribute assignments with resolved_trace_id
- Add trace_id_source parameter to 5 emit_metric_only_event calls
Fixes trace_id inconsistency found in MESSAGE_RUN, TOOL_EXECUTION,
MODERATION_CHECK, SUGGESTED_QUESTION_GENERATION, GENERATE_NAME_EXECUTION,
DATASET_RETRIEVAL, and PROMPT_GENERATION_EXECUTION events.
All 78 telemetry tests passing.
|
2026-02-28 20:32:15 -08:00 |
|
GareArc
|
ea9081f22d
|
feat(telemetry): add operation_type labels for token metrics
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
|
2026-02-06 01:06:07 -08:00 |
|
GareArc
|
91a6fe25d1
|
feat(telemetry): add enterprise OTEL telemetry with gateway, traces, metrics, and logs
|
2026-02-05 23:10:30 -08:00 |
|
XlKsyt
|
1e9142c213
|
feat: enhance tencent trace integration with LLM core metrics (#27126)
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-29 15:53:30 +08:00 |
|
XlKsyt
|
0b35bc1ede
|
feat: add Tencent Cloud APM tracing integration (#25657)
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-14 10:21:17 +08:00 |
|
-LAN-
|
85cda47c70
|
feat: knowledge pipeline (#25360)
Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: twwu <twwu@dify.ai>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
Co-authored-by: jyong <718720800@qq.com>
Co-authored-by: Wu Tianwei <30284043+WTW0313@users.noreply.github.com>
Co-authored-by: QuantumGhost <obelisk.reg+git@gmail.com>
Co-authored-by: lyzno1 <yuanyouhuilyz@gmail.com>
Co-authored-by: quicksand <quicksandzn@gmail.com>
Co-authored-by: Jyong <76649700+JohnJyong@users.noreply.github.com>
Co-authored-by: lyzno1 <92089059+lyzno1@users.noreply.github.com>
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Joel <iamjoel007@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: nite-knite <nkCoding@gmail.com>
Co-authored-by: Hanqing Zhao <sherry9277@gmail.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: Harry <xh001x@hotmail.com>
|
2025-09-18 12:49:10 +08:00 |
|
-LAN-
|
bab4975809
|
chore: add ast-grep rule to convert Optional[T] to T | None (#25560)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
|
2025-09-15 13:06:33 +08:00 |
|
Yongtao Huang
|
2ac7a9c8fc
|
Chore: thanks to bump-pydantic (#25437)
|
2025-09-09 20:07:17 +08:00 |
|
Shaun
|
00cb1c26a1
|
refactor: pass external_trace_id to message trace (#23089)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
|
2025-07-29 19:34:46 +08:00 |
|
-LAN-
|
482e50aae9
|
Refactor/remove db from cycle manager (#20455)
Signed-off-by: -LAN- <laipz8200@outlook.com>
|
2025-05-30 04:34:13 +08:00 |
|
yihong
|
56e15d09a9
|
feat: mypy for all type check (#10921)
|
2024-12-24 18:38:51 +08:00 |
|
Bowen Liang
|
6c8e208ef3
|
chore: bump minimum supported Python version to 3.11 (#10386)
|
2024-11-24 13:28:46 +08:00 |
|
Joe
|
aa3da0e24c
|
fix(ops_tracing): enhance error handle in celery tasks. (#10401)
|
2024-11-08 14:43:47 +08:00 |
|
zhuhao
|
831c5a93af
|
refactor(ops): Optimize the iteration for filter_none_values and use logging.error to record logs when an exception occurs (#8461)
|
2024-09-21 22:56:37 +08:00 |
|
Bowen Liang
|
292220c596
|
chore: apply pep8-naming rules for naming convention (#8261)
|
2024-09-11 16:40:52 +08:00 |
|
Bowen Liang
|
2cf1187b32
|
chore(api/core): apply ruff reformatting (#7624)
|
2024-09-10 17:00:20 +08:00 |
|
Joe
|
425174e82f
|
feat: update ops trace (#7102)
|
2024-08-09 15:22:16 +08:00 |
|
Joe
|
e8b8f6c6dd
|
Feat/fix ops trace (#5672)
Co-authored-by: takatost <takatost@gmail.com>
|
2024-06-28 00:24:37 +08:00 |
|
Joe
|
4e2de638af
|
feat: add ops trace (#5483)
Co-authored-by: takatost <takatost@gmail.com>
|
2024-06-26 17:33:29 +08:00 |
|