Files
dify/api/extensions/otel/semconv/dify.py
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

24 lines
591 B
Python

"""Dify-specific semantic convention definitions."""
class DifySpanAttributes:
"""Attribute names for Dify-specific spans."""
APP_ID = "dify.app_id"
"""Application identifier."""
TENANT_ID = "dify.tenant_id"
"""Tenant identifier."""
USER_TYPE = "dify.user_type"
"""User type, e.g. Account, EndUser."""
STREAMING = "dify.streaming"
"""Whether streaming response is enabled."""
WORKFLOW_ID = "dify.workflow_id"
"""Workflow identifier."""
INVOKE_FROM = "dify.invoke_from"
"""Invocation source, e.g. SERVICE_API, WEB_APP, DEBUGGER."""