MCPcopy
hub / github.com/grafana/tempo / newInstance

Method newInstance

modules/overrides/extension.go:40–42  ·  view source on GitHub ↗

newInstance creates a zeroed pointer instance of the extension type, cast to Extension.

()

Source from the content-addressed store, hash-verified

38
39// newInstance creates a zeroed pointer instance of the extension type, cast to Extension.
40func (e *registryEntry) newInstance() Extension {
41 return reflect.New(e.elemType).Interface().(Extension)
42}
43
44var extensionRegistry = struct {
45 allLegacyKeys map[string]struct{} // union of LegacyKeys() across all registered extensions

Callers 2

processExtensionsFunction · 0.80
processLegacyExtensionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected