Git Product home page Git Product logo

Comments (9)

iquirino avatar iquirino commented on August 18, 2024

I rolled out a new version on docker hub. Can you try it again? I didn't modified anything.
It is using lates alpine version.

from nginx-opentelemetry.

ballerabdude avatar ballerabdude commented on August 18, 2024

I pulled the latest with no cache.

docker run -it --pull=always -v ${PWD}/nginx.conf:/etc/nginx/nginx.conf iquirino91/nginx-opentelemetry sh                                                                      
latest: Pulling from iquirino91/nginx-opentelemetry
Digest: sha256:0657199cb35d4e720f75ac70a09e3022c71f94a9a10ec32f7f2756b4c41ae6fe
Status: Image is up to date for iquirino91/nginx-opentelemetry:latest

/ # cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.0
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"

/ # /etc/nginx/nginx -v
nginx version: nginx/1.21.4
/ # /etc/nginx/nginx -g "daemon off;"
2022/06/08 16:45:04 [emerg] 10#0: dlopen() "/etc/nginx/modules/otel_ngx_module.so" failed (Error relocating /etc/nginx/modules/otel_ngx_module.so: _ZN4absl12lts_2021110216variant_internal21ThrowBadVariantAccessEv: symbol not found) in /etc/nginx/nginx.conf:1
nginx: [emerg] dlopen() "/etc/nginx/modules/otel_ngx_module.so" failed (Error relocating /etc/nginx/modules/otel_ngx_module.so: _ZN4absl12lts_2021110216variant_internal21ThrowBadVariantAccessEv: symbol not found) in /etc/nginx/nginx.conf:1
/ #

nginx.conf

load_module /etc/nginx/modules/otel_ngx_module.so;

events {}

http {
  opentelemetry_config /conf/otel-nginx.toml;
  access_log stderr;
  error_log stderr debug;

  upstream node-backend {
    server example.com:8001;
  }

  server {
    listen 8000;

    root /var/www/html;

    opentelemetry_attribute "test.attrib.global" "global";
    opentelemetry_attribute "test.attrib.custom" "global-custom";

    location = / {
      opentelemetry_operation_name $request_uri;
      opentelemetry_propagate;
      proxy_pass http://node-backend/;
    }
  } 
}`

from nginx-opentelemetry.

iquirino avatar iquirino commented on August 18, 2024

I will try to update nginx and open telemetry version

from nginx-opentelemetry.

iquirino avatar iquirino commented on August 18, 2024

Updated. Can you try again, please?

from nginx-opentelemetry.

ballerabdude avatar ballerabdude commented on August 18, 2024

I just pulled down the latest, and the issue is still there. During my initial debugging I actually started with the latest versions of all the libraries thinking that would fix the problem.

from nginx-opentelemetry.

darkobas2 avatar darkobas2 commented on August 18, 2024

Anyone figured this out ?

from nginx-opentelemetry.

iquirino avatar iquirino commented on August 18, 2024

I've pushed a new image with latest versions of otel and nginx, please pull it again and try it ;)

from nginx-opentelemetry.

Fenkiou avatar Fenkiou commented on August 18, 2024

Not working for me neither with a Dockerfile like this:

FROM iquirino91/nginx-opentelemetry
RUN echo "load_module /etc/nginx/modules/otel_ngx_module.so;$(cat /etc/nginx/nginx.conf)" > /etc/nginx/nginx.conf

Replaced FROM alpine with FROM alpine:3.15 in your Dockerfile resolved the issue as stated by @ballerabdude, alpine 3.16 and 3.17 does not seems to be working for some reason.

from nginx-opentelemetry.

iquirino avatar iquirino commented on August 18, 2024

I am pushing a new image with alpine:3.15 version fixed.
I am currently without time to check it, if you have time to check why it broken, please share with us...
I'll try to have some time to fix it on the lates version.

Thank you guys! ;)

from nginx-opentelemetry.

Related Issues (1)

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.