Documentation ¶
Index ¶
Constants ¶
View Source
const ( // KindMemory is the kind to be used to create a memory instrumentor services. KindMemory = "memory" // KindPrometheus is the kind to be used to create a collection of prometheus // instrumentor services. KindPrometheus = "prometheus" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Collection ¶
type Collection struct { // Public. Consumer spec.Consumer Publisher spec.Publisher // contains filtered or unexported fields }
Collection is the object bundling all services.
func NewCollection ¶
func NewCollection(config CollectionConfig) (*Collection, error)
NewCollection creates a new configured storage Collection.
func (*Collection) Boot ¶
func (c *Collection) Boot()
func (*Collection) Shutdown ¶
func (c *Collection) Shutdown()
type CollectionConfig ¶
type CollectionConfig struct { // Settings. HTTPEndpoint string HTTPHandler http.Handler Kind string Prefixes []string }
CollectionConfig represents the configuration used to create a new collection.
func DefaultCollectionConfig ¶
func DefaultCollectionConfig() CollectionConfig
DefaultCollectionConfig provides a default configuration to create a new collection by best effort.
Directories ¶
Path | Synopsis |
---|---|
memory
|
|
consumer
Package consumer implements github.com/the-anna-project/instrumentor.Consumer and provides instrumentation primitives to manage application metrics.
|
Package consumer implements github.com/the-anna-project/instrumentor.Consumer and provides instrumentation primitives to manage application metrics. |
publisher
Package publisher implements github.com/the-anna-project/instrumentor.Publisher and provides instrumentation primitives to emit application metrics.
|
Package publisher implements github.com/the-anna-project/instrumentor.Publisher and provides instrumentation primitives to emit application metrics. |
prometheus
|
|
consumer
Package consumer implements github.com/the-anna-project/instrumentor.Consumer and provides instrumentation primitives to manage application metrics.
|
Package consumer implements github.com/the-anna-project/instrumentor.Consumer and provides instrumentation primitives to manage application metrics. |
publisher
Package publisher implements github.com/the-anna-project/instrumentor.Publisher and provides instrumentation primitives to emit application metrics.
|
Package publisher implements github.com/the-anna-project/instrumentor.Publisher and provides instrumentation primitives to emit application metrics. |
Click to show internal directories.
Click to hide internal directories.