GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pinpoint/doc/proxy-http-header.md at master · coder-java-caicai/pinpoint

Expand file tree

/

proxy-http-header.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
79 lines (63 loc) · 1.32 KB
/

proxy-http-header.md

Copy path

File metadata and controls

79 lines (63 loc) · 1.32 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Proxy monitoring using HTTP headers

It is used to know the elapsed time between proxy and WAS.

overview

Pinpoint Configuration

pinpoint.config

profiler.proxy.http.header.enable=true

Proxy Configuration

Apache HTTP Server

  • http://httpd.apache.org/docs/2.4/en/mod/mod_headers.html

Add HTTP header.

Pinpoint-ProxyApache: t=991424704447256 D=3775428 i=51 b=49

e.g.

httpd.conf

<IfModule mod_jk.c>
...
RequestHeader set Pinpoint-ProxyApache "%t %D %i %b"
...
</IfModule>

%t is required value.

Nginx

  • http://nginx.org/en/docs/http/ngx_http_core_module.html
  • http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_set_header

Add HTTP header.

Pinpoint-ProxyNginx: t=1504248328.423 D=0.123

e.g.

nginx.conf

...
  server {
        listen       9080;
        server_name  localhost;

        location / {
            ...
            set $pinpoint_proxy_header "t=$msec D=$request_time";
            proxy_set_header Pinpoint-ProxyNginx $pinpoint_proxy_header;
        }
  }
...

or

http {
...

    proxy_set_header Pinpoint-ProxyNginx t=$msec;

...
}

t=$msec is required value.

App

Milliseconds since epoch and app information.

Add HTTP header.

Pinpoint-ProxyApp: t=1502861340 app=foo-bar

t=epoch is required value.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.