[PR #583] [MERGED] feat: support opentelemetry #596

Closed
opened 2026-02-16 01:16:27 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/583
Author: @fatelei
Created: 1/25/2026
Status: Merged
Merged: 1/27/2026
Merged by: @Stream29

Base: mainHead: opentelemetry


📝 Commits (1)

  • f799d1a feat: support opentelemetry

📊 Changes

20 files changed (+627 additions, -161 deletions)

View changed files

📝 .env.example (+16 -0)
📝 cmd/server/main.go (+18 -3)
📝 go.mod (+63 -43)
📝 go.sum (+191 -96)
📝 internal/core/control_panel/launcher_local.go (+4 -0)
📝 internal/core/control_panel/server_local.go (+2 -1)
📝 internal/core/dify_invocation/calldify/http_client.go (+5 -5)
📝 internal/core/local_runtime/constructor.go (+4 -3)
📝 internal/core/local_runtime/environment_python.go (+5 -0)
internal/core/local_runtime/otel_test.go (+44 -0)
📝 internal/core/local_runtime/setup_python_environment.go (+63 -2)
📝 internal/core/local_runtime/type.go (+9 -0)
📝 internal/core/plugin_manager/installer.go (+3 -2)
📝 internal/core/serverless_connector/client.go (+5 -5)
📝 internal/db/init.go (+9 -0)
📝 internal/server/http_server.go (+5 -1)
internal/server/otel.go (+146 -0)
internal/server/otel_gin.go (+14 -0)
📝 internal/types/app/config.go (+16 -0)
📝 pkg/utils/cache/redis.go (+5 -0)

📄 Description

Description

fix #582

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Performance improvement
  • Other

Essential Checklist

image

dify chain of dify-plugin-daemon

image

Testing

  • I have tested the changes locally and confirmed they work as expected
  • I have added unit tests where necessary and they pass successfully

Bug Fix (if applicable)

  • I have used GitHub syntax to close the related issue (e.g., Fixes #123 or Closes #123)

Additional Information

Please provide any additional context that would help reviewers understand the changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/583 **Author:** [@fatelei](https://github.com/fatelei) **Created:** 1/25/2026 **Status:** ✅ Merged **Merged:** 1/27/2026 **Merged by:** [@Stream29](https://github.com/Stream29) **Base:** `main` ← **Head:** `opentelemetry` --- ### 📝 Commits (1) - [`f799d1a`](https://github.com/langgenius/dify-plugin-daemon/commit/f799d1a78b85aa816cfc9e7a6123fcb304687bfc) feat: support opentelemetry ### 📊 Changes **20 files changed** (+627 additions, -161 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+16 -0) 📝 `cmd/server/main.go` (+18 -3) 📝 `go.mod` (+63 -43) 📝 `go.sum` (+191 -96) 📝 `internal/core/control_panel/launcher_local.go` (+4 -0) 📝 `internal/core/control_panel/server_local.go` (+2 -1) 📝 `internal/core/dify_invocation/calldify/http_client.go` (+5 -5) 📝 `internal/core/local_runtime/constructor.go` (+4 -3) 📝 `internal/core/local_runtime/environment_python.go` (+5 -0) ➕ `internal/core/local_runtime/otel_test.go` (+44 -0) 📝 `internal/core/local_runtime/setup_python_environment.go` (+63 -2) 📝 `internal/core/local_runtime/type.go` (+9 -0) 📝 `internal/core/plugin_manager/installer.go` (+3 -2) 📝 `internal/core/serverless_connector/client.go` (+5 -5) 📝 `internal/db/init.go` (+9 -0) 📝 `internal/server/http_server.go` (+5 -1) ➕ `internal/server/otel.go` (+146 -0) ➕ `internal/server/otel_gin.go` (+14 -0) 📝 `internal/types/app/config.go` (+16 -0) 📝 `pkg/utils/cache/redis.go` (+5 -0) </details> ### 📄 Description ## Description fix #582 ## Type of Change - [ ] Bug fix - [x] New feature - [ ] Refactor - [ ] Performance improvement - [ ] Other ## Essential Checklist <img width="3800" height="1790" alt="image" src="https://github.com/user-attachments/assets/be79d696-259b-49c7-a096-852bc74af176" /> dify chain of dify-plugin-daemon <img width="3758" height="1498" alt="image" src="https://github.com/user-attachments/assets/282af7fe-597c-4bd8-b343-21a097566122" /> ### Testing - [x] I have tested the changes locally and confirmed they work as expected - [x] I have added unit tests where necessary and they pass successfully ### Bug Fix (if applicable) - [x] I have used GitHub syntax to close the related issue (e.g., `Fixes #123` or `Closes #123`) ## Additional Information Please provide any additional context that would help reviewers understand the changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:16:27 -05:00
yindo closed this issue 2026-02-16 01:16:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#596