Skip to content

Commit ee2882d

Browse files
authored
Merge pull request #21 from Intellection/add-x-request-start-header
[SRE-3433] Add x-request-start header
2 parents 1d90124 + ae617cd commit ee2882d

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.25.4
4+
5+
* Add `X-Request-Start` header set to current time with millisecond precision.
6+
* Update base image to `zappi/nginx:1.25.4`.
7+
38
## 1.25.3-1
49

510
* Add OpenTelemetry (OTel) module i.e. `nginx-module-otel`.

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM zappi/nginx:1.25.3 as builder
1+
FROM zappi/nginx:1.25.4 as builder
22

33
USER root
44

@@ -16,9 +16,9 @@ RUN apt-get update -y && \
1616
WORKDIR /usr/src/
1717

1818
# Download nginx source
19-
ARG NGINX_VERSION="1.25.3"
19+
ARG NGINX_VERSION="1.25.4"
2020
ARG NGINX_PKG="nginx-${NGINX_VERSION}.tar.gz"
21-
ARG NGINX_SHA="64c5b975ca287939e828303fa857d22f142b251f17808dfe41733512d9cded86"
21+
ARG NGINX_SHA="760729901acbaa517996e681ee6ea259032985e37c2768beef80df3a877deed9"
2222
RUN wget "http://nginx.org/download/${NGINX_PKG}" && \
2323
echo "${NGINX_SHA} *${NGINX_PKG}" | sha256sum -c - && \
2424
tar --no-same-owner -xzf ${NGINX_PKG} --one-top-level=nginx --strip-components=1
@@ -37,7 +37,7 @@ RUN cd nginx && \
3737
make modules
3838

3939
# Production container starts here
40-
FROM zappi/nginx:1.25.3
40+
FROM zappi/nginx:1.25.4
4141

4242
USER root
4343

config/http.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ http {
7777
proxy_set_header X-Forwarded-Port $proxy_x_forwarded_port;
7878
proxy_set_header X-Request-ID $proxy_x_request_id;
7979
proxy_set_header X-Forwarded-Host $proxy_x_forwarded_host;
80+
proxy_set_header X-Request-Start "t=${msec}";
8081

8182
# Latency headers
8283
add_header X-Proxy-Backend-Connect-Time $upstream_connect_time;

0 commit comments

Comments
 (0)