Skip to content

Commit

Permalink
Update: latencies.kong description
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh committed Mar 27, 2024
1 parent e2bab1c commit 6a7884e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/_includes/md/plugins-hub/json-object-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,22 @@
* `request`: Properties about the request sent by the client.
* `response`: Properties about the response sent to the client.
* `latencies`: Latency data.
{% if_plugin_version gte:3.7.x %}
* `kong`: The internal {{site.base_gateway}} latency, in milliseconds, that it takes to process the request.
* For requests that are proxied to an upstream, it is equivalent to the `X-Kong-Proxy-Latency` [response header](https://docs.konghq.com/gateway/latest/reference/configuration/#headers).

Check failure on line 10 in app/_includes/md/plugins-hub/json-object-log.md

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [kong.Relativeurls] Use relative URLs for docs URLs. For example, use [Get Started](/gateway/latest/get-started/) instead of [Get Started](https://docs.konghq.com/gateway/3.3.x/get-started/). If a direct URL is necessary, use {{ site.links.web }} instead of `https://docs.konghq.com`. Raw Output: {"message": "[kong.Relativeurls] Use relative URLs for docs URLs. For example, use [Get Started](/gateway/latest/get-started/) instead of [Get Started](https://docs.konghq.com/gateway/3.3.x/get-started/). If a direct URL is necessary, use {{ site.links.web }} instead of `https://docs.konghq.com`.", "location": {"path": "app/_includes/md/plugins-hub/json-object-log.md", "range": {"start": {"line": 10, "column": 100}}}, "severity": "ERROR"}
* For requests that generate a response within {{ site.base_gateway }} (typically the result of an error or a plugin-generated response), it is equivalent to the `X-Kong-Response-Latency` [response header](https://docs.konghq.com/gateway/latest/reference/configuration/#headers).

Check failure on line 11 in app/_includes/md/plugins-hub/json-object-log.md

View workflow job for this annotation

GitHub Actions / Vale

[vale] reported by reviewdog 🐶 [kong.Relativeurls] Use relative URLs for docs URLs. For example, use [Get Started](/gateway/latest/get-started/) instead of [Get Started](https://docs.konghq.com/gateway/3.3.x/get-started/). If a direct URL is necessary, use {{ site.links.web }} instead of `https://docs.konghq.com`. Raw Output: {"message": "[kong.Relativeurls] Use relative URLs for docs URLs. For example, use [Get Started](/gateway/latest/get-started/) instead of [Get Started](https://docs.konghq.com/gateway/3.3.x/get-started/). If a direct URL is necessary, use {{ site.links.web }} instead of `https://docs.konghq.com`.", "location": {"path": "app/_includes/md/plugins-hub/json-object-log.md", "range": {"start": {"line": 11, "column": 193}}}, "severity": "ERROR"}
* `request`: The time in milliseconds that has elapsed between when the first bytes were read from the client and the last byte was sent to the client. This is useful for detecting slow clients.
* `proxy`: The time in milliseconds that it took for the upstream to process the request. In other words, it's the time elapsed between transferring the
request to the final service and when {{site.base_gateway}} starts receiving the response.
* `receive`: The time in milliseconds that it took to receive and process the response (headers and body) from the upstream.
{% else %}
* `kong`: The internal {{site.base_gateway}} latency, in milliseconds, that it takes to process the request. It varies based on the actual processing flow. Generally, it consists of three parts:
* The time it took to find the right upstream.
* The time it took to receive the whole response from upstream.
* The time it took to run all plugins executed before the log phase.
* `request`: The time in milliseconds that has elapsed between when the first bytes were read from the client and the last byte was sent to the client. This is useful for detecting slow clients.
* `proxy`: The time in milliseconds that it took for the upstream to process the request. In other words, it's the time elapsed between transferring the
request to the final service and when {{site.base_gateway}} starts receiving the response.
{% if_plugin_version gte:3.7.x %}
* `receive`: The time in milliseconds that it took to receive and process the response (headers and body) from the upstream.
{% endif_plugin_version %}
* `tries`: a list of iterations made by the load balancer for this request.
* `balancer_start`: A Unix timestamp for when the balancer started.
Expand Down

0 comments on commit 6a7884e

Please sign in to comment.