# Copy to .env for local development: cp .env-example .env

# --- Application (examples/outbox_worker) ---
APP_NAME=eventcommon-outbox-worker-example
APP_ENV=dev
BUILD_VERSION=dev

# --- AWS / LocalStack ---
AWS_REGION=us-east-1
AWS_ENDPOINT_URL=http://localhost:4566
AWS_ACCESS_KEY_ID=test
AWS_SECRET_ACCESS_KEY=test
SNS_TOPIC_ARN=arn:aws:sns:us-east-1:000000000000:eventcommon-demo
SQS_QUEUE_URL=http://localhost:4566/000000000000/eventcommon-demo

# --- Outbox (Postgres via pgcommon) ---
DATABASE_URL=postgres://eventcommon:eventcommon@localhost:5432/eventcommon
OUTBOX_POLL_INTERVAL=2
OUTBOX_BATCH_SIZE=50
OUTBOX_MAX_ATTEMPTS=5

# --- OpenTelemetry ---
# Set to reach the local otel-collector started by `make docker-up` (OTLP/gRPC).
# Leave unset to record spans without exporting them.
OTLP_ENDPOINT=localhost:4317
ENABLE_TRACING=true
ENABLE_METRICS=true

# --- Local logs -> Loki (Promtail tails this file when using make docker-up) ---
LOG_FILE=logs/app.log

# --- Observability stack (Docker host port mappings) ---
OTEL_COLLECTOR_GRPC_PORT=4317
OTEL_COLLECTOR_HTTP_PORT=4318
TEMPO_HTTP_PORT=3200
LOKI_HTTP_PORT=3100
PROMETHEUS_HTTP_PORT=9090
GRAFANA_HTTP_PORT=3000
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=admin

# Prometheus scrapes the example worker on the host, not in the compose network.
PROMETHEUS_SCRAPE_TARGET=host.docker.internal:9464

# --- Tooling ---
PYTHON=python3
