MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / emit

Method emit

internal/agent/api.go:258–263  ·  view source on GitHub ↗

emit returns the wired metrics backend, defaulting to NoOp so handler-level instrumentation doesn't need nil guards everywhere.

()

Source from the content-addressed store, hash-verified

256// emit returns the wired metrics backend, defaulting to NoOp so
257// handler-level instrumentation doesn't need nil guards everywhere.
258func (a *API) emit() telemetry.Metrics {
259 if a.metrics == nil {
260 return telemetry.NoOp{}
261 }
262 return a.metrics
263}
264
265// publishAsync fires an event in a fresh goroutine so the handler's
266// response is not blocked by webhook routing. Returns immediately.

Callers 7

publishSentMethod · 0.95
publishApprovedMethod · 0.95
publishRejectedMethod · 0.95
dialMethod · 0.80
constructorMethod · 0.80
simulateBrowserCallbackFunction · 0.80

Calls

no outgoing calls

Tested by 1

simulateBrowserCallbackFunction · 0.64