mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 01:18:05 +08:00
feat(telemetry): add invoked_by user tracking to enterprise OTEL
This commit is contained in:
@ -52,6 +52,8 @@ class WorkflowTraceInfo(BaseTraceInfo):
|
||||
query: str
|
||||
metadata: dict[str, Any]
|
||||
|
||||
invoked_by: str | None = None
|
||||
|
||||
|
||||
class MessageTraceInfo(BaseTraceInfo):
|
||||
conversation_model: str
|
||||
@ -151,6 +153,8 @@ class WorkflowNodeTraceInfo(BaseTraceInfo):
|
||||
node_outputs: Mapping[str, Any] | None = None
|
||||
process_data: Mapping[str, Any] | None = None
|
||||
|
||||
invoked_by: str | None = None
|
||||
|
||||
model_config = ConfigDict(protected_namespaces=())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user