Description
Add the grafana/otel-lgtm observability stack to the local docker-compose environment so developers can validate instrumentation locally before deploying.
Context
No devcontainer. The compose file is demo/docker-compose.yml — webvh-server runs as a compose service on webvh-network, so http://lgtm:4318 is the correct endpoint.
Requirements
- Add
grafana/otel-lgtm service to demo/docker-compose.yml on the webvh-network (ports 3000:3000, 4317:4317, 4318:4318)
- Add to the
webvh-server service environment:
OTEL_EXPORTER_OTLP_ENDPOINT=http://lgtm:4318
OTEL_SERVICE_NAME=didwebvh-server-py
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_TRACES_EXPORTER=otlp
OTEL_METRICS_EXPORTER=otlp
OTEL_PYTHON_LOG_CORRELATION=true
- Update README or CONTRIBUTING with local observability instructions
Acceptance Criteria
Description
Add the
grafana/otel-lgtmobservability stack to the local docker-compose environment so developers can validate instrumentation locally before deploying.Context
No devcontainer. The compose file is
demo/docker-compose.yml—webvh-serverruns as a compose service onwebvh-network, sohttp://lgtm:4318is the correct endpoint.Requirements
grafana/otel-lgtmservice todemo/docker-compose.ymlon thewebvh-network(ports3000:3000,4317:4317,4318:4318)webvh-serverservice environment:OTEL_EXPORTER_OTLP_ENDPOINT=http://lgtm:4318OTEL_SERVICE_NAME=didwebvh-server-pyOTEL_EXPORTER_OTLP_PROTOCOL=http/protobufOTEL_TRACES_EXPORTER=otlpOTEL_METRICS_EXPORTER=otlpOTEL_PYTHON_LOG_CORRELATION=trueAcceptance Criteria
docker compose -f demo/docker-compose.yml upstarts the LGTM stack alongside the servicehttp://localhost:3000