Good Afternoon ALL , i need one help in setting my signoz in flask application it is working
logging is added but post that hits are not comming and trace is not available but in my stdout or dockerlogs i am able to see response
Signoz lservice logs
2024-11-14 14
1140.408 | * Restarting with stat
2024-11-14 14
1140.407 | Press CTRL+C to quit
2024-11-14 14
1140.407 |
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on all addresses (0.0.0.0) * Running on
http://127.0.0.1:5000 * Running on
http://172.18.0.23:5000
Dockerfile
FROM python:3.9-slim-buster
WORKDIR /code
RUN apt-get update \
&& apt-get -y install libpq-dev gcc
COPY ./code/req.text .
RUN pip install --no-cache-dir -r req.text
COPY ./code .
ENV OTEL_RESOURCE_ATTRIBUTES=service.name=test
ENV OTEL_EXPORTER_OTLP_ENDPOINT=
http://signoz:4318
ENV OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
ENV OTEL_TRACES_SAMPLER=parentbased_always_on
ENV OTEL_METRICS_EXPORTER=otlp
ENV OTEL_LOGS_EXPORTER=otlp
ENV OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
EXPOSE 5000
CMD ["opentelemetry-instrument", "python3", "-m", "flask", "run", "--host=0.0.0.0"]