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

Function annotateHealthVerdict

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

Source from the content-addressed store, hash-verified

3684 * are enumerable; `detail`/`identity` (upstream free text / an email)
3685 * never go on a span. */
3686 const annotateHealthVerdict = (
3687 source: "cache" | "no_capability" | "credential_only" | "probe",
3688 result: HealthCheckResult,
3689 ): Effect.Effect<void> =>
3690 Effect.annotateCurrentSpan({
3691 "executor.health.status": result.status,
3692 "executor.health.source": source,
3693 ...(result.httpStatus !== undefined
3694 ? { "executor.health.http_status": result.httpStatus }
3695 : {}),
3696 });
3697
3698 const connectionCheckHealth = (
3699 ref: ConnectionRef,

Callers 1

connectionCheckHealthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected