Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = NewRegistry()
Functions ¶
This section is empty.
Types ¶
type Instrumentation ¶
type Instrumentation interface { // ImportPath returns instrumentation import path ImportPath() string }
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry is responsible for keeping mapping between packages and their instrumentation.
func (*Registry) InstrumentationImportPath ¶
InstrumentationImportPath returns instrumentation import path for targetPkg, if any registered or empty string otherwise.
func (*Registry) InstrumentationRecipe ¶
InstrumentationRecipe returns recipe for the targetPkg if any registered.
func (*Registry) ListNames ¶
ListNames returns list of the package names, that has registered instrumentations.
func (*Registry) Register ¶
Register creates a mapping between targetPkg and instrumentation. It should be invoked with `init()` function
func (*Registry) Unregister ¶
Unregister the recipe by package name.
Click to show internal directories.
Click to hide internal directories.