Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommunityDefaulter ¶ added in v1.0.154
func NewCommunityDefaulter() *communityDefaulter
TODO: remove/rename this once we have an enterprise instrumentor
func NewOnPremDefaulter ¶ added in v1.0.154
func NewOnPremDefaulter() *onPremDefaulter
TODO: remove this once we have an enterprise instrumentor
Types ¶
type Defaulter ¶ added in v1.0.154
type Defaulter interface {
GetDefaultDistroNames() map[common.ProgrammingLanguage]string
}
type Getter ¶ added in v1.0.154
type Getter struct {
// contains filtered or unexported fields
}
func (*Getter) GetDistroByName ¶ added in v1.0.154
func (g *Getter) GetDistroByName(distroName string) *distro.OtelDistro
type Provider ¶ added in v1.0.154
func NewProvider ¶ added in v1.0.154
NewProvider creates a new distributions provider. A provider is a combination of a defaulter and a getter. The defaulter is used to get the default distro names for each programming language. The getter is used to get the distro object itself from the available distros.
A provider is constructed from a single defaulter and one or more getters. The getters are unioned together to create a single getter for the provider.
Each default distribution must be provided by at least one of the getters.
Click to show internal directories.
Click to hide internal directories.