civic-eagle / statsd-http-proxy

StatsD HTTP proxy server with REST interface for using in browsers
MIT License
0 stars 0 forks source link

Get a 0 status code when it should be a 200 #2

Open johnseekins opened 2 years ago

johnseekins commented 2 years ago

Instrumentation of this tool reports metrics like:

        "metric": {
          "__name__": "http_requests_total",
          "instance": "statsd-proxy:80",
          "job": "statsd-proxy",
          "method": "POST",
          "path": "/count",
          "status_code": "0"
        },

When the actual status code should be 200. Need to determine why we're getting bad values.

johnseekins commented 2 years ago

This is likely some artifact of how httprouter and negroni interact. Perhaps moving routing frameworks would help solve this?