Code Monkey home page Code Monkey logo

Comments (5)

teuno avatar teuno commented on May 26, 2024 1

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.

seemk avatar seemk commented on May 26, 2024

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.

teuno avatar teuno commented on May 26, 2024

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.

seemk avatar seemk commented on May 26, 2024

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.

iquirino avatar iquirino commented on May 26, 2024

#81 I already built a docker image for alpine linux.

from opentelemetry-cpp-contrib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.