agent-module/agent-plugins/proxy-user/README.md
pinpoint.config
# User-specified HTTP headers
# Supports apache and nginx formats.
# e.g. profiler.proxy.http.headers=X-Trace, X-Request, X-ApacheLB, X-SSL-nginx
profiler.proxy.http.headers=
Add HTTP header.
X-ApacheLB: t=991424704447256 D=3775428
e.g.
httpd.conf
<IfModule mod_jk.c>
...
RequestHeader set X-ApacheLB "%t %D"
...
</IfModule>
%t is required value.
Add HTTP header.
X-SSL-nginx: 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 X-SSL-nginx $pinpoint_proxy_header;
}
}
...
or
http {
...
proxy_set_header X-SSL-nginx t=$msec;
...
}
t=$msec is required value.
Add HTTP header.
# If profile.proxy.http.headers=x-trace setting
x-trace: t=1670487808091 d=3775428
+-----------+ +--------------+ +------------------+
| Mobile | ----> | Unknown | ----> | WAS |
| App | + Gateway | + (pinpoint agent) |
+-----------+ +--------------+ +------------------+
| |
| +--------------+
+ -----------------------------------> | elapsed time |
+--------------+