Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions samples/instrumentation-quickstart/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.12
FROM python:3.12-slim
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
WORKDIR /usr/src/app
COPY . .
RUN python -m venv /venv && \
/venv/bin/pip install -r requirements.txt
CMD /venv/bin/gunicorn -b 0.0.0.0:8080 -w 4 'app:app' 2>&1 | tee /var/log/app.log
RUN uv sync --frozen
CMD uv run gunicorn -b 0.0.0.0:8080 -w 4 'app:app' 2>&1 | tee /var/log/app.log
18 changes: 18 additions & 0 deletions samples/instrumentation-quickstart/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[project]
name = "instrumentation-quickstart"
version = "0.1.0"
description = "A Flask app instrumented with OpenTelemetry and structured logging for GCP"
readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"flask>=3.1.0",
"gunicorn>=23.0.0",
"opentelemetry-api>=1.29.0",
"opentelemetry-exporter-otlp-proto-http>=1.29.0",
"opentelemetry-instrumentation-flask>=0.50b0",
"opentelemetry-instrumentation-logging>=0.50b0",
"opentelemetry-instrumentation-requests>=0.50b0",
"opentelemetry-sdk>=1.29.0",
"python-json-logger>=3.2.0",
"requests>=2.32.3",
]
11 changes: 0 additions & 11 deletions samples/instrumentation-quickstart/requirements.txt

This file was deleted.

Loading