MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / annotateHealthVerdict

Function annotateHealthVerdict

packages/core/sdk/src/executor.ts:3329–3339  ·  view source on GitHub ↗
(
      source: "cache" | "no_capability" | "credential_only" | "probe",
      result: HealthCheckResult,
    )

Source from the content-addressed store, hash-verified

3327 * are enumerable; `detail`/`identity` (upstream free text / an email)
3328 * never go on a span. */
3329 const annotateHealthVerdict = (
3330 source: "cache" | "no_capability" | "credential_only" | "probe",
3331 result: HealthCheckResult,
3332 ): Effect.Effect<void> =>
3333 Effect.annotateCurrentSpan({
3334 "executor.health.status": result.status,
3335 "executor.health.source": source,
3336 ...(result.httpStatus !== undefined
3337 ? { "executor.health.http_status": result.httpStatus }
3338 : {}),
3339 });
3340
3341 const connectionCheckHealth = (
3342 ref: ConnectionRef,

Callers 1

connectionCheckHealthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected