Skip to content

Commit

Permalink
Add nginx-otel module
Browse files Browse the repository at this point in the history
  • Loading branch information
hnakamur committed Dec 13, 2024
1 parent 991f742 commit fc61c11
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,6 @@
[submodule "modules/ngx_mruby"]
path = modules/ngx_mruby
url = https://github.com/matsumotory/ngx_mruby
[submodule "modules/nginx-otel"]
path = modules/nginx-otel
url = https://github.com/nginxinc/nginx-otel
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ RUN apt-get update && \
opensc \
uwsgi \
uwsgi-plugin-python3 \
rake
rake \
# for nginx-otel module
git cmake libpcre3-dev pkg-config libc-ares-dev libre2-dev

# create symbolic links for nginx-tests
RUN mkdir -p /usr/local/lib/engines
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKG_VERSION=1.26.2+mod.3
PKG_VERSION=1.26.2+mod.4
PKG_REL_PREFIX=1hn1
ifdef NO_CACHE
DOCKER_NO_CACHE=--no-cache
Expand Down
1 change: 1 addition & 0 deletions add_submodules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ git submodule add https://github.com/nginx/njs
git submodule add https://github.com/owasp-modsecurity/ModSecurity-nginx
git submodule add https://github.com/fffonion/lua-resty-openssl
git submodule add https://github.com/matsumotory/ngx_mruby
git submodule add https://github.com/nginxinc/nginx-otel
7 changes: 7 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
nginx (1.26.2+mod.4-1hn1DebRelDistrib) UNRELEASED; urgency=medium

* Add NGINX Native OpenTelemetry (OTel) Module
* 6c1659a20ba946cdde21e9dbc52e7c740b06d968 modules/nginx-otel (v0.1.1-18-g6c1659a)

-- Hiroaki Nakamura <[email protected]> Sat, 14 Dec 2024 03:10:59 +0900

nginx (1.26.2+mod.3-1hn1DebRelDistrib) UNRELEASED; urgency=medium

* add module
Expand Down
8 changes: 7 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ Build-Depends: debhelper (>= 9~),
libmhash-dev,
libmaxminddb-dev,
libperl-dev,
rake
rake,
git,
cmake,
libpcre3-dev,
pkg-config,
libc-ares-dev,
libre2-dev
Standards-Version: 3.9.8.0
Homepage: http://nginx.org

Expand Down
3 changes: 3 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ config.env.%:
cp -Pa $(CURDIR)/ngx_mruby $(BUILDDIR_$*)/
sed 's/@MRUBY_ROOT@//;s/@MRUBY_INCDIR@//;s/@MRUBY_LIBDIR@//' \
$(BUILDDIR_$*)/ngx_mruby/config.in > $(BUILDDIR_$*)/ngx_mruby/config
cp -Pa $(CURDIR)/nginx-otel $(BUILDDIR_$*)/
touch $@

config.status.nginx: config.env.nginx
Expand Down Expand Up @@ -128,6 +129,7 @@ config.status.nginx: config.env.nginx
--add-dynamic-module=./njs/nginx \
--add-dynamic-module=./ModSecurity-nginx \
--add-dynamic-module=./ngx_mruby \
--add-dynamic-module=./nginx-otel \
--without-pcre2 \
--with-cc-opt="$(CFLAGS)" \
--with-ld-opt="$(LDFLAGS)"
Expand Down Expand Up @@ -202,6 +204,7 @@ config.status.nginx_debug: config.env.nginx_debug
--add-dynamic-module=./njs/nginx \
--add-dynamic-module=./ModSecurity-nginx \
--add-dynamic-module=./ngx_mruby \
--add-dynamic-module=./nginx-otel \
--without-pcre2 \
--with-cc-opt="$(CFLAGS)" \
--with-ld-opt="$(LDFLAGS)" \
Expand Down
1 change: 1 addition & 0 deletions modules/nginx-otel
Submodule nginx-otel added at 6c1659

0 comments on commit fc61c11

Please sign in to comment.