mirror of
https://github.com/awslabs/amazon-bedrock-agentcore-samples.git
synced 2025-09-08 20:50:46 +00:00
* feat(sre-agent): add OpenTelemetry observability and tracing - Add OpenTelemetry tracing to supervisor and memory tools - Configure OTEL collector with Jaeger backend via docker-compose - Add trace context propagation between supervisor and workers - Include run-with-tracing.sh helper script for easy tracing setup - Update blog post with comprehensive observability section - Add presentation slides for SRE agent capabilities * docs(sre-agent): replace mermaid diagram with architecture image - Replace inline mermaid diagram with external architecture PNG image - Add detailed component descriptions for AgentCore integration - Image shows complete flow from customer to AgentCore services * feat(sre-agent): add assets table with demo video and AI podcast links - Add assets section with clickable links to demo video and AI-generated podcast - Include descriptions for each asset to help users understand the content - Position table prominently after the use case details for visibility * docs(sre-agent): update blog post with latest code snippets and improvements - Update Dockerfile snippet to include OpenTelemetry instrumentation - Update invoke_agent_runtime.py snippet with timeout config and memory personalization - Remove verbose real-time agent execution traces section while keeping key insights - Simplify cleanup section to show only essential command - Ensure all code snippets match latest implementation * style(sre-agent): apply ruff formatting to Python files - Format code with ruff formatter for consistent style - Fix whitespace and indentation issues - Apply standard Python formatting conventions - Ensure code adheres to project style guidelines * chore(sre-agent): remove slide files from docs - Remove presentation slide markdown files - Clean up docs directory structure
25 lines
653 B
Docker
25 lines
653 B
Docker
# Use uv's ARM64 Python base image
|
|
FROM --platform=linux/arm64 ghcr.io/astral-sh/uv:python3.12-bookworm-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy uv files
|
|
COPY pyproject.toml uv.lock ./
|
|
|
|
# Install dependencies
|
|
RUN uv sync --frozen --no-dev
|
|
|
|
# Copy SRE agent module
|
|
COPY sre_agent/ ./sre_agent/
|
|
|
|
# Set environment variables
|
|
# Note: Set DEBUG=true to enable debug logging and traces
|
|
ENV PYTHONPATH="/app" \
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
# Expose port
|
|
EXPOSE 8080
|
|
|
|
# Run application with OpenTelemetry instrumentation
|
|
CMD ["uv", "run", "opentelemetry-instrument", "uvicorn", "sre_agent.agent_runtime:app", "--host", "0.0.0.0", "--port", "8080"] |