Instrumentação Python em Containers
Instrumentação de Aplicativos Python em Containers com o Agent OpenTelemetry
Instalação do Agent no Dockerfile
Pacotes comuns (sempre instale):
RUN pip install \
opentelemetry-distro \
opentelemetry-exporter-otlp \
opentelemetry-instrumentation-requestsFastAPI:
RUN pip install opentelemetry-instrumentation-fastapiFlask:
RUN pip install opentelemetry-instrumentation-flaskDjango:
RUN pip install opentelemetry-instrumentation-djangoDockerfile de exemplo:
Configuração das Variáveis de Ambiente
Explicação:
Como iniciar o app com o agente (CMD)
FastAPI (com Uvicorn)
Flask
Django
Exemplos por Ambiente
Docker Compose
Kubernetes
ECS (Fargate ou EC2)
Troubleshooting
Boas práticas
Exemplo de .env
.envLast updated
Was this helpful?

