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

Function annotateHealthVerdict

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

Source from the content-addressed store, hash-verified

3901 * are enumerable; `detail`/`identity` (upstream free text / an email)
3902 * never go on a span. */
3903 const annotateHealthVerdict = (
3904 source: "cache" | "no_capability" | "credential_only" | "probe",
3905 result: HealthCheckResult,
3906 ): Effect.Effect<void> =>
3907 Effect.annotateCurrentSpan({
3908 "executor.health.status": result.status,
3909 "executor.health.source": source,
3910 ...(result.httpStatus !== undefined
3911 ? { "executor.health.http_status": result.httpStatus }
3912 : {}),
3913 });
3914
3915 const connectionCheckHealth = (
3916 ref: ConnectionRef,

Callers 1

connectionCheckHealthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected