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

Function annotateHealthVerdict

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

Source from the content-addressed store, hash-verified

3281 * are enumerable; `detail`/`identity` (upstream free text / an email)
3282 * never go on a span. */
3283 const annotateHealthVerdict = (
3284 source: "cache" | "no_capability" | "credential_only" | "probe",
3285 result: HealthCheckResult,
3286 ): Effect.Effect<void> =>
3287 Effect.annotateCurrentSpan({
3288 "executor.health.status": result.status,
3289 "executor.health.source": source,
3290 ...(result.httpStatus !== undefined
3291 ? { "executor.health.http_status": result.httpStatus }
3292 : {}),
3293 });
3294
3295 const connectionCheckHealth = (
3296 ref: ConnectionRef,

Callers 1

connectionCheckHealthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected