Skip to main content
This document provides a quick reference for all telemetry signals emitted by Dify Enterprise via the Data Push feature.

Resource Attributes

Attached to every signal (Span, Metric, Log).

Traces (Spans)

dify.workflow.run

dify.node.execution

dify.node.execution.draft

Same attributes as dify.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.total at workflow level includes all node_execution tokens. Filter by operation_type to avoid double-counting.

Token Hierarchy & Query Patterns

Token metrics are emitted at multiple layers. Understanding the hierarchy prevents double-counting:
Key rule: 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 — use app_id for metric queries.
Common queries (PromQL):
Finding 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.run
  • dify.event.signal: span_detail
  • trace_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.execution or dify.node.execution.draft
  • dify.event.signal: span_detail
  • trace_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

When ENTERPRISE_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 null in JSON.
  • Content-Gated: Replaced with reference strings, not set to null.