Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgarcia4158 committed Feb 23, 2024
1 parent e73c69a commit 6ad0f0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ COPY ./routers /code/routers
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN opentelemetry-bootstrap --action=install

ENV OTEL_RESOURCE_ATTRIBUTES "service.name=fastapi"
ENV OTEL_EXPORTER_OTLP_ENDPOINT "http://otel-collector:4317"
ENV OTEL_EXPORTER_OTLP_PROTOCOL "grpc"

EXPOSE 8000

CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--forwarded-allow-ips", "*"]

0 comments on commit 6ad0f0b

Please sign in to comment.