Resource Attributes
Attached to every signal (Span, Metric, Log).Traces (Spans)
dify.workflow.run
dify.node.execution
dify.node.execution.draft
Same attributes asdify.node.execution. Emitted during Preview/Debug runs.
Counters
All counters are cumulative and emitted at 100% accuracy.Token Counters
Labels:
tenant_id, app_id, operation_type, model_provider, model_name, node_type (if node_execution)
Warning:dify.tokens.totalat workflow level includes allnode_executiontokens. Filter byoperation_typeto avoid double-counting.
Token Hierarchy & Query Patterns
Token metrics are emitted at multiple layers. Understanding the hierarchy prevents double-counting:workflow tokens already include all node_execution tokens. Never sum both.
- Available labels on token metrics:
tenant_id,app_id,operation_type,model_provider,model_name,node_type. - App name is only available on span attributes (
dify.app.name), not metric labels — useapp_idfor metric queries.
app_id from app name (trace query — Tempo / Jaeger):
Request Counters
Labels by type:
Error Counters
Labels by type:
Other Counters
Histograms
Structured Logs
Span Companion Logs
Logs that accompany spans. Signal type:span_detail.
dify.workflow.run Companion Log
Common attributes: All span attributes (see Traces section) plus: Event attributes:dify.event.name:dify.workflow.rundify.event.signal:span_detailtrace_id,span_id,tenant_id,user_id
dify.node.execution and dify.node.execution.draft Companion Logs
Common attributes: All span attributes (see Traces section) plus: Event attributes:dify.event.name:dify.node.executionordify.node.execution.draftdify.event.signal:span_detailtrace_id,span_id,tenant_id,user_id
Standalone Logs
Logs without structural spans. Signal type:metric_only.
dify.message.run
dify.tool.execution
dify.moderation.check
dify.suggested_question.generation
dify.dataset.retrieval
dify.generate_name.execution
dify.prompt_generation.execution
dify.app.created
dify.app.updated
dify.app.deleted
dify.feedback.created
dify.telemetry.rehydration_failed
Diagnostic event for telemetry system health monitoring.Content-Gated Attributes
WhenENTERPRISE_INCLUDE_CONTENT=false, these attributes are replaced with reference strings (ref:{id_type}={uuid}).
Appendix
Operation Types
workflow, node_execution, message, rule_generate, code_generate, structured_output, instruction_modify
Node Types
start, end, answer, llm, knowledge-retrieval, knowledge-index, if-else, code, template-transform, question-classifier, http-request, tool, datasource, variable-aggregator, loop, iteration, parameter-extractor, assigner, document-extractor, list-operator, agent, trigger-webhook, trigger-schedule, trigger-plugin, human-input
Workflow Statuses
running, succeeded, failed, stopped, partial-succeeded, paused
Payload Types
workflow, node, message, tool, moderation, suggested_question, dataset_retrieval, generate_name, prompt_generation, app, feedback
Null Value Behavior
- Spans: Attributes with null values are omitted.
- Logs: Attributes with null values appear as
nullin JSON. - Content-Gated: Replaced with reference strings, not set to null.