router icon indicating copy to clipboard operation
router copied to clipboard

telemetry: add selectors for errors to be able to match on a specific error

Open bnjjj opened this issue 1 year ago • 0 comments

Example for use case: if you want to create a counter that count the number of connection timeout error you got and add subgraph as an attribute to know which subgraph encountered a timeout.

example of configuration we would like to have:

telemetry:
  instrumentation:
    instruments:
      subgraph:
        requests.timeout:
          value: unit
          type: counter
          unit: request
          description: "subgraph requests containing subgraph timeout"
          attributes:
            subgraph.name: true
          condition:
            eq:
              - "request timed out"
              - error: reason

bnjjj avatar Apr 26 '24 09:04 bnjjj