---
source: apollo-router/src/plugins/telemetry/config_new/instruments.rs
description: Custom histogram should not be incremented as the condition is not true on drop.
expression: "&metrics.all()"
info:
  telemetry:
    instrumentation:
      instruments:
        router:
          http.server.active_requests: false
          http.server.request.duration: false
          custom.histogram:
            description: histogram of requests
            type: histogram
            unit: unit
            value: unit
            condition:
              eq:
                - request_header: always-true
                - static: "true"
---
- name: custom.histogram
  description: histogram of requests
  unit: unit
  data:
    datapoints:
      - sum: 1
        count: 1
        attributes: {}
