MCPcopy Create free account
hub / github.com/anomalyco/opencode / get

Function get

packages/opencode/src/session/llm.ts:213–220  ·  view source on GitHub ↗
(target, prop, receiver)

Source from the content-addressed store, hash-verified

211 const telemetryTracer = tracer
212 ? new Proxy(tracer, {
213 get(target, prop, receiver) {
214 if (prop !== "startSpan") return Reflect.get(target, prop, receiver)
215 return (...args: Parameters<typeof target.startSpan>) => {
216 const span = target.startSpan(...args)
217 span.setAttribute("session.id", input.sessionID)
218 return span
219 }
220 },
221 })
222 : undefined
223

Callers 4

session.tsFile · 0.70
patchFunction · 0.70
share-next.tsFile · 0.50
pty.tsFile · 0.50

Calls 1

getMethod · 0.65

Tested by

no test coverage detected