Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bnjjj opened this issue Apr 26, 2024 · 0 comments · Fixed by #5022
Closed

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

bnjjj opened this issue Apr 26, 2024 · 0 comments · Fixed by #5022
Assignees
Labels
component/open-telemetry OTLP, Datadog, Prometheus, etc. and the integrations around it.

Comments

@bnjjj
Copy link
Contributor

bnjjj commented Apr 26, 2024

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 bnjjj added the component/open-telemetry OTLP, Datadog, Prometheus, etc. and the integrations around it. label Apr 26, 2024
@bnjjj bnjjj self-assigned this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/open-telemetry OTLP, Datadog, Prometheus, etc. and the integrations around it.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant