Use it for Kubernetes liveness & readiness checks. The middleware opens a HTTP server on port 3001. To check, open the http://localhost:3001/live & http://localhost:3001/ready URL.
{
"state": "up",
"uptime": 7.419,Use it for Kubernetes liveness & readiness checks. The middleware opens a HTTP server on port 3001. To check, open the http://localhost:3001/live & http://localhost:3001/ready URL.
{
"state": "up",
"uptime": 7.419,| #!/bin/bash | |
| # Usage: tracing::init [endpoint; default localhost:4317] | |
| function tracing::init() { | |
| export OTEL_EXPORTER_OTLP_ENDPOINT="${1:-${OTEL_EXPORTER_OTLP_ENDPOINT:-localhost:4317}}" | |
| } | |
| # Usage: tracing::auto::init [endpoint; default localhost:4317] | |
| function tracing::auto::init() { | |
| tracing::init |