Analyzer go-net-http-req-latency

Name

go-net-http-req-latency - Go net/http Request Latency

This analyzer measures and profiles HTTP request latency in Go applications using the standard net/http package. It captures detailed timing metrics for each request phase, including header processing time, ServeMux routing time, user handler execution time, and response transmission time. The analyzer supports filtering by host, URI, and minimum request duration, and optionally captures network packets for matched requests. It generates line charts and detailed request breakdowns to help identify performance bottlenecks in HTTP request handling pipelines.

Resource Category

Latency.

Application Type & Technical Stack

  • Go

Command Line Syntax

The analyzer can be invoked directly on the command-line via the orxray utility from the openresty-xray-cli software package.

Alternatively, the analyzer can also be invoked manually or automatically on the web console UI of OpenResty XRay (like on the Advanced web page).

# PID is the target process PID.
orxray analyzer run go-net-http-req-latency -p PID

# trace a shell command directly
orxray analyzer run go-net-http-req-latency -c SHELL_CMD

# PGID is the process group ID or any process's PID within the target process
# group.
orxray analyzer run go-net-http-req-latency -p -PGID

# trace any processes started from the specified executable path.
orxray analyzer run go-net-http-req-latency --exe /path/to/exe/file

Tracing Multiple Processes

Supported.

Output Formats

  • Line Charts
  • Plain Texts

Author

The OpenResty Inc. Team.

Copyright (C) by OpenResty Inc. All rights reserved.