Optional is not the same as unready
A Compose dependency can fail for two separate reasons: the provider exists but is not ready, or the provider is deliberately absent for this run. Health-based conditions address the first case. They do not make an absent service optional.
For an integration such as telemetry, place the integration service behind a named profile. When that profile is not enabled, Compose leaves the service out of the active model. This keeps the definition in the same configuration while making participation an explicit operator choice.
Then use long-form depends_on on the consuming application and mark that dependency as non-required.…