Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ __pycache__/
mirror-failure.txt
mirror-result.txt
publish-failure.txt
!plugins/zcode-plugin-langfuse/payload/dist/
!plugins/zcode-plugin-langfuse/payload/dist/**
18 changes: 18 additions & 0 deletions marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,24 @@
"cli",
"oauth2"
]
},
{
"name": "zcode-plugin-langfuse",
"source": "./plugins/zcode-plugin-langfuse",
"description": "Fail-open Langfuse tracing for ZCode sessions, prompts, tool calls, and assistant responses.",
"description_i18n": {
"en": "Fail-open Langfuse tracing for ZCode sessions, prompts, tool calls, and assistant responses.",
"zh-CN": "为 ZCode 会话、提示词、工具调用和助手回复提供 fail-open 的 Langfuse 追踪。"
},
"version": "0.2.3",
"category": "developer-tools",
"tags": [
"langfuse",
"tracing",
"telemetry",
"hooks"
],
"strict": true
}
]
}
83 changes: 83 additions & 0 deletions plugins/zcode-plugin-langfuse/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"name": "zcode-plugin-langfuse",
"description": "Fail-open Langfuse tracing for ZCode sessions, prompts, tool calls, and assistant responses.",
"description_i18n": {
"en": "Fail-open Langfuse tracing for ZCode sessions, prompts, tool calls, and assistant responses.",
"zh-CN": "为 ZCode 会话、提示词、工具调用和助手回复提供 fail-open 的 Langfuse 追踪。"
},
"version": "0.2.3",
"author": {
"name": "Community contributor"
},
"license": "MIT",
"keywords": [
"langfuse",
"observability",
"tracing",
"telemetry",
"hooks"
],
"userConfig": {
"langfuse_public_key": {
"title": "Langfuse public key",
"description": "Langfuse project public key. You can also provide LANGFUSE_PUBLIC_KEY in the ZCode process environment.",
"type": "string",
"required": false
},
"langfuse_secret_key": {
"title": "Langfuse secret key",
"description": "Langfuse project secret key. It is used only by the local hook process and is never written to hook output.",
"type": "string",
"required": false,
"sensitive": true
},
"langfuse_base_url": {
"title": "Langfuse base URL",
"description": "HTTPS Langfuse host, for example https://cloud.langfuse.com or a self-hosted HTTPS URL. Plain HTTP is rejected.",
"type": "string",
"default": "https://cloud.langfuse.com"
},
"langfuse_user_id": {
"title": "Langfuse user ID",
"description": "Optional stable user identifier attached to traces. Leave empty to omit it.",
"type": "string",
"required": false
},
"langfuse_environment": {
"title": "Langfuse environment",
"description": "Environment label attached to traces.",
"type": "string",
"default": "development"
},
"capture_prompts": {
"title": "Capture prompts",
"description": "Include user prompts and assistant responses in Langfuse. Disable for metadata-only tracing.",
"type": "boolean",
"default": true
},
"capture_tool_inputs": {
"title": "Capture tool inputs",
"description": "Include tool names and inputs in Langfuse spans.",
"type": "boolean",
"default": true
},
"capture_tool_outputs": {
"title": "Capture tool outputs",
"description": "Include tool results and errors in Langfuse spans.",
"type": "boolean",
"default": true
},
"max_capture_chars": {
"title": "Maximum captured characters",
"description": "Maximum characters per captured prompt, tool payload, or response. Larger values are truncated.",
"type": "number",
"default": 20000
},
"debug": {
"title": "Debug diagnostics",
"description": "Write non-sensitive lifecycle diagnostics to stderr. Disabled by default.",
"type": "boolean",
"default": false
}
}
}
83 changes: 83 additions & 0 deletions plugins/zcode-plugin-langfuse/.zcode-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"name": "zcode-plugin-langfuse",
"description": "Fail-open Langfuse tracing for ZCode sessions, prompts, tool calls, and assistant responses.",
"description_i18n": {
"en": "Fail-open Langfuse tracing for ZCode sessions, prompts, tool calls, and assistant responses.",
"zh-CN": "为 ZCode 会话、提示词、工具调用和助手回复提供 fail-open 的 Langfuse 追踪。"
},
"version": "0.2.3",
"author": {
"name": "Community contributor"
},
"license": "MIT",
"keywords": [
"langfuse",
"observability",
"tracing",
"telemetry",
"hooks"
],
"userConfig": {
"langfuse_public_key": {
"title": "Langfuse public key",
"description": "Langfuse project public key. You can also provide LANGFUSE_PUBLIC_KEY in the ZCode process environment.",
"type": "string",
"required": false
},
"langfuse_secret_key": {
"title": "Langfuse secret key",
"description": "Langfuse project secret key. It is used only by the local hook process and is never written to hook output.",
"type": "string",
"required": false,
"sensitive": true
},
"langfuse_base_url": {
"title": "Langfuse base URL",
"description": "HTTPS Langfuse host, for example https://cloud.langfuse.com or a self-hosted HTTPS URL. Plain HTTP is rejected.",
"type": "string",
"default": "https://cloud.langfuse.com"
},
"langfuse_user_id": {
"title": "Langfuse user ID",
"description": "Optional stable user identifier attached to traces. Leave empty to omit it.",
"type": "string",
"required": false
},
"langfuse_environment": {
"title": "Langfuse environment",
"description": "Environment label attached to traces.",
"type": "string",
"default": "development"
},
"capture_prompts": {
"title": "Capture prompts",
"description": "Include user prompts and assistant responses in Langfuse. Disable for metadata-only tracing.",
"type": "boolean",
"default": true
},
"capture_tool_inputs": {
"title": "Capture tool inputs",
"description": "Include tool names and inputs in Langfuse spans.",
"type": "boolean",
"default": true
},
"capture_tool_outputs": {
"title": "Capture tool outputs",
"description": "Include tool results and errors in Langfuse spans.",
"type": "boolean",
"default": true
},
"max_capture_chars": {
"title": "Maximum captured characters",
"description": "Maximum characters per captured prompt, tool payload, or response. Larger values are truncated.",
"type": "number",
"default": 20000
},
"debug": {
"title": "Debug diagnostics",
"description": "Write non-sensitive lifecycle diagnostics to stderr. Disabled by default.",
"type": "boolean",
"default": false
}
}
}
21 changes: 21 additions & 0 deletions plugins/zcode-plugin-langfuse/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Community contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading