mirror of
https://ids-dev.idsbuybuybuy.com/ids-ecommerce/ids-svc-product.git
synced 2026-11-29 16:57:41 +08:00
- 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.
18 lines
443 B
Plaintext
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)
|