Accepts a OtelCollectorConfig or plain options.
Releases connections. Idempotent; later calls fail with CancelledError.
Collector health. 200 {"status":"Server available",…} → healthy=true, status="ok" with
details {source: "health_check", vendorStatus, upSince, uptime}; 503 → unhealthy;
unreachable → zpages fallback (details.source = "zpages"), else unreachable. Never throws
for an unhealthy or unreachable collector (only CANCELLED and CONFIG).
Collector version: zpages /debug/servicez "Version" row, else service_version of
target_info at OtelCollectorConfig.telemetryUrl. UnsupportedError when neither
answers with a version.
Polls health until the collector is healthy and returns that status. Throws
TimeoutError after timeoutMs (default 30 000) and CancelledError on abort.
StaticfromBuilds a client from the environment (see OtelCollectorConfig.fromEnv).
Health of an OpenTelemetry Collector:
GET {healthUrl}(health_check extension) and, when that endpoint is unreachable (stock stacks bind it to localhost),GET {zpagesUrl}/debug/servicez. Admin endpoints are unauthenticated: the configured export headers are never sent to them.