MCPcopy Create free account
hub / github.com/github/gh-aw / resolveEngineId

Function resolveEngineId

actions/setup/js/send_otlp_span.cjs:215–217  ·  view source on GitHub ↗

* Resolve the engine identifier from aw_info.json, aw_context propagation, or env vars. * * Priority: * 1. `awInfo.engine_id` – set by generate_aw_info.cjs on the agent job * 2. `awInfo.context.engine_id` – propagated via aw_context for auxiliary / dispatched jobs * 3. `process.env.GH_AW_INFO_E

(awInfo)

Source from the content-addressed store, hash-verified

213 * @returns {string}
214 */
215function resolveEngineId(awInfo) {
216 return readContextString(awInfo.engine_id) || readContextString(awInfo.context?.engine_id) || process.env.GH_AW_INFO_ENGINE_ID || "";
217}
218
219/**
220 * Resolve live episode correlation attributes directly from runtime context.

Callers 3

sendJobSetupSpanFunction · 0.85
sendJobConclusionSpanFunction · 0.85

Calls 1

readContextStringFunction · 0.85

Tested by

no test coverage detected