MCPcopy
hub / github.com/modelcontextprotocol/registry / ShutdownFunc

FuncType ShutdownFunc

internal/telemetry/metrics.go:38–38  ·  view source on GitHub ↗

ShutdownFunc is a delegate that shuts down the OpenTelemetry components.

func(ctx context.Context) error

Source from the content-addressed store, hash-verified

36
37// ShutdownFunc is a delegate that shuts down the OpenTelemetry components.
38type ShutdownFunc func(ctx context.Context) error
39
40func NewMetrics(meter metric.Meter) (*Metrics, error) {
41 req, err := meter.Int64Counter(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…