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

Function annotateHealthVerdict

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

Source from the content-addressed store, hash-verified

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,

Callers 1

connectionCheckHealthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected