Added app package and health check funcs

This commit is contained in:
2025-01-04 11:23:24 -05:00
parent ce2a7ce221
commit bf3fa2c54c
7 changed files with 254 additions and 117 deletions

14
env-sample Normal file
View File

@ -0,0 +1,14 @@
# App Config
APP_NAME="go-http-server-with-otel"
APP_LOG_LEVEL=trace ## For testing only
APP_LOG_FORMAT=console ## console, json
APP_LOG_TIME_FORMAT=long ## long, short, unix, rfc3339, off
# App OTEL Config
APP_OTEL_STDOUT_ENABLED=true ## For testing only
APP_OTEL_METRIC_INTERVAL_SECS=15
# OTEL SDK Config
OTEL_EXPORTER_OTLP_ENDPOINT="otel-collector.otel.svc.cluster.local" # Set to your otel collector
OTEL_SERVICE_NAME="go-http-server-with-otel"
OTEL_RESOURCE_ATTRIBUTES="env=development,service.version=(devel)"