• Bob Van Landuyt's avatar
    Add request urgency to logs and metrics · 17ec208c
    Bob Van Landuyt authored
    This adds the request urgency to logs by adding a `request_urgency`
    and a `request_urgency_s` fields. The duration in seconds will make it
    easier to build dashboards showing SLIs that don't meet SLO without
    having to copy the information in the runbooks.
    
    The way fields are added to logs is slighty refacotred and tests
    added extended.
    
    The `rails_request_apdex` metrics get initialized and emitted with an
    `urgency` label.
    17ec208c
requests_rack_middleware_spec.rb 15.4 KB