Comments (7)
Looks like the alpine 3.15 package repository comes with a newer abseil
library. This can be causing conflict between the abseil library used internally in opentelemetry-cpp sdk and one coming from the repository. This can be resolved by changing the order of header includes in nginx instrumentation as described here.
As this change would be required in nginx instrumentation, would let @seemk to further reply on that :)
from opentelemetry-cpp-contrib.
Hi @longwuyuan thanks for reaching out to us. Any reason for not installing re2
?
I could get the build working by installing re2
and re2-dev
.
You may consider upgrading to the latest version of opentelemetry 1.2.0.
Also clone was slow, you may consider using
git clone --branch v$OPENTELEMETRY_CPP_VERSION --depth=1 --recursive https://github.com/open-telemetry/opentelemetry-cpp opentelemetry-cpp-$OPENTELEMETRY_CPP_VERSION
from opentelemetry-cpp-contrib.
@esigo thanks a lot. I added re2 and re2-dev to the apk add command in build.sh and that error was resolved.
However I am curious you had a working build. I get below error when I run docker build -t my image .
;
...
...
#9 151.2 nginx http fastcgi temporary files: "fastcgi_temp"
#9 151.2 nginx http uwsgi temporary files: "uwsgi_temp"
#9 151.2 nginx http scgi temporary files: "scgi_temp"
#9 151.2
#9 151.2 make -f objs/Makefile modules
#9 151.2 make[1]: Entering directory '/tmp/build/nginx-1.19.10'
#9 151.2 cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
#9 151.2 -o objs/addon/src/agent_config.o \
#9 151.2 /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/agent_config.cpp
#9 151.2 cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
#9 151.2 -o objs/addon/src/nginx_config.o \
#9 151.2 /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/nginx_config.cpp
#9 151.3 cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
#9 151.3 -o objs/addon/src/otel_ngx_module.o \
#9 151.3 /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/otel_ngx_module.cpp
#9 151.7 cc -c -fPIC -pipe -O -W -Wall -Wpointer-arith -Wno-unused-parameter -Werror -g -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
#9 151.7 -o objs/addon/src/propagate.o \
#9 151.7 /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/propagate.cpp
#9 153.4 In file included from /usr/include/absl/synchronization/mutex.h:73,
#9 153.4 from /usr/include/grpcpp/impl/codegen/sync.h:32,
#9 153.4 from /usr/include/grpcpp/impl/codegen/client_context.h:55,
#9 153.4 from /usr/include/grpcpp/impl/codegen/call_op_set.h:34,
#9 153.4 from /usr/include/grpcpp/impl/codegen/server_context.h:35,
#9 153.4 from /usr/include/grpcpp/impl/codegen/async_stream.h:26,
#9 153.4 from /usr/include/grpcpp/impl/codegen/async_generic_service.h:26,
#9 153.4 from /usr/local/include/opentelemetry/proto/collector/trace/v1/trace_service.grpc.pb.h:25,
#9 153.4 from /usr/local/include/opentelemetry/exporters/otlp/otlp_grpc_exporter.h:11,
#9 153.4 from /tmp/build/opentelemetry-cpp-contrib-f48500884b1b32efc456790bbcdc2e6cf7a8e630/instrumentation/nginx/src/otel_ngx_module.cpp:21:
#9 153.4 /usr/include/absl/synchronization/internal/per_thread_sem.h:84:10: error: reference to 'base_internal' is ambiguous
#9 153.4 84 | friend absl::base_internal::ThreadIdentity* CreateThreadIdentity();
#9 153.4 | ^~~~
...
...
from opentelemetry-cpp-contrib.
Thanks @lalitb , will wait for @seemk comments
from opentelemetry-cpp-contrib.
@longwuyuan Just to add, if you don't want to wait for fix in nginx instrumentation, the alternate solution would be to build opentelemetry-cpp using externally installed abseil
library. This can be achieved by adding -DWITH_ABSEIL=ON cmake option in opentelemetry-cpp build here.
from opentelemetry-cpp-contrib.
@lalitb thank you very much for the update. We have, for now, used alpine v3.14.4 to release ingress-nginx-controller v1.1.3, to get the openssl & libxml CVE patches.
After this activity settles, I expect that an attempt at moving to alpine v3.15.X+ will occur in near future .
@dmathieu is working on kubernetes/ingress-nginx#7621 so tagging here @rikatz
from opentelemetry-cpp-contrib.
All done by "@esigo" in ingress-nginx
from opentelemetry-cpp-contrib.
Related Issues (20)
- Allow extra resource attributes to be added to traces from apache / nginx
- Access Span and Trace ID in Lua Script HOT 2
- `nginx: [emerg] "NginxModuleEnabled" directive is duplicate in /etc/nginx/conf.d/opentelemetry_module.conf:1` HOT 1
- Add feature to send custom attributes from the otel-webserver-module to spans.
- Coredumps when the OpenTelemetry collector host is unavailable.
- nginx module logs debug info as errors
- unknown directive "NginxModuleAttributes" HOT 1
- Add more Resource Attributes to the Otel-Webserver-Module Nginx instrumentation. HOT 1
- Feature to add nginx variables to access tracing context information HOT 1
- [ADMIN] Define labels for the opentelemetry-cpp-contrib repository
- [CI] Add CI for instrumentation/boost_log
- [CI] Add CI for instrumentation/glog
- [CI] Add CI for instrumentation/log4cxx
- [CI] Add CI for instrumentation/spdlog
- [RELEASE] Prepare release for opentelemetry-cpp-contrib 1.15.0
- [CI] Upgrade Prometheus CI to opentelemetry-cpp 1.15.0
- [CI] Upgrade otel-webserver-module CI to opentelemetry-cpp 1.15.0 HOT 1
- Upgrade otel-webserver module for nginx stable version 1.26 and mainline 1.25.5 HOT 1
- Release webserver/v1.1.0 is broken HOT 1
- [BUILD] boost_log compilation error (possibly dangling reference) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentelemetry-cpp-contrib.