MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / setErrorHook

Function setErrorHook

server/src/logger.ts:45–47  ·  view source on GitHub ↗
(hook: ErrorHook)

Source from the content-addressed store, hash-verified

43 * Call this after PostHog is initialized to send errors there.
44 */
45export function setErrorHook(hook: ErrorHook): void {
46 errorHook = hook;
47}
48
49/**
50 * Set the log hook for OpenTelemetry logging.

Callers 1

initPostHogErrorTrackingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected