@@ -104,6 +104,11 @@ export LUA_RESTY_GLOBAL_THROTTLE_VERSION=v0.2.0
104
104
# Check for recent changes: https://github.com/microsoft/mimalloc/compare/v1.7.6...master
105
105
export MIMALOC_VERSION=v2.1.2
106
106
107
+ # Check on https://github.com/open-telemetry/opentelemetry-cpp
108
+ export OPENTELEMETRY_CPP_VERSION=" v1.11.0"
109
+ # Check on https://github.com/open-telemetry/opentelemetry-proto
110
+ export OPENTELEMETRY_PROTO_VERSION=" v1.1.0"
111
+
107
112
export BUILD_PATH=/tmp/build
108
113
109
114
ARCH=$( uname -m)
@@ -119,6 +124,7 @@ get_src()
119
124
echo " Downloading $url "
120
125
121
126
curl -sSL " $url " -o " $f "
127
+ # TODO: Reenable checksum verification but make it smarter
122
128
# echo "$hash $f" | sha256sum -c - || exit 10
123
129
if [ ! -z " $dest " ]; then
124
130
mkdir ${BUILD_PATH} /${dest}
@@ -177,7 +183,7 @@ apk add \
177
183
grpc-dev \
178
184
protobuf-dev
179
185
180
- apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing opentelemetry-cpp-dev
186
+ # apk add -X http://dl-cdn.alpinelinux.org/alpine/edge/testing opentelemetry-cpp-dev
181
187
182
188
# There is some bug with some platforms and git, so force HTTP/1.1
183
189
git config --global http.version HTTP/1.1
@@ -195,6 +201,12 @@ get_src 66dc7081488811e9f925719e34d1b4504c2801c81dee2920e5452a86b11405ae \
195
201
get_src aa961eafb8317e0eb8da37eb6e2c9ff42267edd18b56947384e719b85188f58b \
196
202
" https://github.com/vision5/ngx_devel_kit/archive/$NDK_VERSION .tar.gz" " ngx_devel_kit"
197
203
204
+ get_src abc123 \
205
+ " https://github.com/open-telemetry/opentelemetry-cpp/archive/$OPENTELEMETRY_CPP_VERSION .tar.gz" " opentelemetry-cpp"
206
+
207
+ get_src abc123 \
208
+ " https://github.com/open-telemetry/opentelemetry-proto/archive/$OPENTELEMETRY_PROTO_VERSION .tar.gz" " opentelemetry-proto"
209
+
198
210
get_src cd5e2cc834bcfa30149e7511f2b5a2183baf0b70dc091af717a89a64e44a2985 \
199
211
" https://github.com/openresty/set-misc-nginx-module/archive/$SETMISC_VERSION .tar.gz" " set-misc-nginx-module"
200
212
@@ -288,7 +300,27 @@ make install
288
300
ln -s /usr/local/bin/luajit /usr/local/bin/lua
289
301
ln -s " $LUAJIT_INC " /usr/local/include/lua
290
302
291
- cd " $BUILD_PATH "
303
+ cd " $BUILD_PATH /opentelemetry-cpp"
304
+ export CXXFLAGS=" -DBENCHMARK_HAS_NO_INLINE_ASSEMBLY"
305
+ cmake -B build -G Ninja -Wno-dev \
306
+ -DOTELCPP_PROTO_PATH=" ${BUILD_PATH} /opentelemetry-proto/" \
307
+ -DCMAKE_INSTALL_PREFIX=/usr \
308
+ -DBUILD_SHARED_LIBS=ON \
309
+ -DBUILD_TESTING=" OFF" \
310
+ -DBUILD_W3CTRACECONTEXT_TEST=" OFF" \
311
+ -DCMAKE_BUILD_TYPE=None \
312
+ -DWITH_ABSEIL=ON \
313
+ -DWITH_STL=ON \
314
+ -DWITH_EXAMPLES=OFF \
315
+ -DWITH_ZPAGES=OFF \
316
+ -DWITH_OTLP_GRPC=ON \
317
+ -DWITH_OTLP_HTTP=ON \
318
+ -DWITH_ZIPKIN=ON \
319
+ -DWITH_PROMETHEUS=OFF \
320
+ -DWITH_ASYNC_EXPORT_PREVIEW=OFF \
321
+ -DWITH_METRICS_EXEMPLAR_PREVIEW=OFF
322
+ cmake --build build
323
+ cmake --install build
292
324
293
325
# Git tuning
294
326
git config --global --add core.compression -1
0 commit comments