Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 631 Bytes

File metadata and controls

17 lines (13 loc) · 631 Bytes

Diagnostics

Diagnostics have a stable code, severity, origin, source span, and recovery flag. Origins separate syntax, template, semantic, resource-limit, and unhandled-node failures.

Representative codes:

  • query.bytes, query.tokens, query.nodes, and query.depth;
  • query.literal-bytes and query.regex-bytes;
  • template.unclosed and template.empty-name;
  • promql.syntax, logql.syntax, and traceql.syntax;
  • promql.unknown-function;
  • ast.invalid-span.

Consumers should branch on code, not English text. Diagnostics never include credentials, backend queries, or resolved Grafana variable values.