(
source: "cache" | "no_capability" | "credential_only" | "probe",
result: HealthCheckResult,
)
| 3181 | * are enumerable; `detail`/`identity` (upstream free text / an email) |
| 3182 | * never go on a span. */ |
| 3183 | const annotateHealthVerdict = ( |
| 3184 | source: "cache" | "no_capability" | "credential_only" | "probe", |
| 3185 | result: HealthCheckResult, |
| 3186 | ): Effect.Effect<void> => |
| 3187 | Effect.annotateCurrentSpan({ |
| 3188 | "executor.health.status": result.status, |
| 3189 | "executor.health.source": source, |
| 3190 | ...(result.httpStatus !== undefined |
| 3191 | ? { "executor.health.http_status": result.httpStatus } |
| 3192 | : {}), |
| 3193 | }); |
| 3194 | |
| 3195 | const connectionCheckHealth = ( |
| 3196 | ref: ConnectionRef, |
no outgoing calls
no test coverage detected