Comments (5)
Thanks for you help (added the --with-compat and it ran send the traces to my collector).
Got a local running version without docker atm.
from opentelemetry-cpp-contrib.
Thanks! I'll look into publishing to Docker hub, I agree building it is not a trivial matter due to requiring building of both gRPC and opentelemetry-cpp.
What platforms did you try to build it on?
We don't have the releases process set up yet (#11), but the CI does build prebuilt binaries on Ubuntu 18.04, 20.04 and 20.10 for both nginx 1.18 and 1.19 which you can grab here: https://github.com/open-telemetry/opentelemetry-cpp-contrib/actions/runs/705078540
I can add additional targeted platforms as well.
from opentelemetry-cpp-contrib.
Hi, atm I have followed https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/#modules . Got a working nginx without the grpc and otlp, but kinda stuck after that (the dependencies for building part in https://github.com/open-telemetry/opentelemetry-cpp-contrib/tree/main/instrumentation/nginx ). I build on ubuntu 18.04, so that's one that you already have.
Do you know which --add(-dynamic)-module to add?
from opentelemetry-cpp-contrib.
Just to get an overview of your setup:
You are building nginx yourself? If yes, then I think you only need to add --with-compat
flag. See https://github.com/open-telemetry/opentelemetry-cpp-contrib/tree/main/instrumentation/nginx#troubleshooting
Are you using the prebuilt .so
?
If you are building nginx you don't need to add any -add-*-module
for instrumentation module to work, in fact it should work with nginx versions out of the box (with the exception of nginx 1.14 on ubuntu 18.04 default apt - you can get a newer one from nginx packages: https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-open-source/#installing-a-prebuilt-debian-package-from-an-os-repository)
Then if you have nginx and the instrumentation module .so
you can add it to nginx config. Example - https://github.com/open-telemetry/opentelemetry-cpp-contrib/tree/main/instrumentation/nginx#usage
You can check the nginx flags with nginx -V
, it should have --with-compat
.
from opentelemetry-cpp-contrib.
#81 I already built a docker image for alpine linux.
from opentelemetry-cpp-contrib.
Related Issues (20)
- nginx: design question: Why does the sampler default to parent_based=false? HOT 3
- extend OpenTelemetry module for Apache HTTP Server with arm support HOT 1
- Gathering ephemeral port and source ip from module
- otel-webserver-module Fails to run on Redhat 7 HOT 5
- insertHooksForStage: Instrumentation Hooks NOT added. Max hooks for stage. Stage: fixups Module HOT 1
- Release v1.0.4 has the wrong format or file ending HOT 1
- nginx1.21.4 is not supported HOT 1
- otel-webserver support for arm64 HOT 1
- otel_ngx_module: New release for nginx 1.25.3 HOT 2
- NginxModuleOtelExporterOtlpHeaders - Send Bearer token
- Support for Red Hat based Nginx images HOT 1
- OpenTelemetry throws error "otel_stopInteraction: result code: 25" HOT 2
- Add feature to ignore paths, such that no span is created for the specfifc paths matching the regex. HOT 6
- Add operation_name directive to change root span name for each reuqest in otel-webserver-module.
- Add B3 propogator to otel-webserver-module
- 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.
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.