Skip to content

Querying

  • OQL returns no rows.
  • OQL returns ORL-2001, ORL-2002, or ORL-2003.
  • Queries time out.
  • A trace cannot be opened by ID.

Start simple:

spans | limit 20
logs | limit 20
metrics | limit 20

Then add one predicate at a time.

Confirm the active scope bar values. Oriel injects workspace, project, environment, service, and time predicates into telemetry reads.

CodeMeaningFix
ORL-2001Syntax errorCheck the byte offset and simplify the query.
ORL-2002Unknown or ambiguous fieldUse a known field or check attribute type.
ORL-2003Unknown function or wrong arityCheck the OQL aggregation table.
ORL-2004Scan budget exceededNarrow scope, time range, or predicates.
ORL-2005TimeoutNarrow the query or reduce grouping cardinality.
ORL-2007Scope deniedCheck workspace/project permissions.
ORL-2008Trace not foundConfirm trace ID, time range, retention, and project visibility.
ORL-2009Environment scope ignored for tracesQuery spans or logs when environment-level filtering is required.
  • Use resource. or res. for resource attributes.
  • Use backticks for reserved words as field names.
  • Avoid high-cardinality groupings until the base filter is selective.
  • Use top N by metric after binned stats to cap series.
  • Check permissions with a workspace admin when scope-denied errors appear.