ids-svc-product/.env.example
robinj0726 2e5cf31b67 feat: add observability and metrics support
- Introduced Prometheus metrics for gRPC requests and product creation.
- Integrated OpenTelemetry for distributed tracing.
- Updated Docker Compose configuration to expose metrics endpoint.
- Enhanced architecture and development documentation with new environment variables.
- Refactored configuration loading to include metrics and tracing settings.
- Implemented observability package to handle tracing and metrics.
- Updated product server to utilize observability features for logging and tracing.
2026-07-07 17:29:54 +08:00

18 lines
443 B
Plaintext

SERVER_PORT=:50052
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=ids_ecommerce
POSTGRES_SCHEMA=product
POSTGRES_SSLMODE=disable
NATS_URL=nats://localhost:4222
METRICS_PORT=:9102
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
OTEL_EXPORTER_OTLP_INSECURE=true
DEPLOYMENT_ENVIRONMENT=development
# Optional
# POSTGRES_DSN=postgres://... # full DSN override (skips assembly above)