Documentation
¶
Overview ¶
Package version contains the operator's version, as well as versions of underlying components.
Index ¶
- func AutoInstrumentationApacheHttpd() string
- func AutoInstrumentationDotNet() string
- func AutoInstrumentationGo() string
- func AutoInstrumentationJava() string
- func AutoInstrumentationNginx() string
- func AutoInstrumentationNodeJS() string
- func AutoInstrumentationPython() string
- func IsInstrumentationVersionUnupgradable(language constants.InstrumentationLanguage, image, defaultImage string) (blocked bool, warning string)
- func OpenTelemetryCollector() string
- func OperatorOpAMPBridge() string
- func SetUnupgradableInstrumentationVersionsForTests(versions map[constants.InstrumentationLanguage]map[string]string) func()
- func TargetAllocator() string
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoInstrumentationApacheHttpd ¶ added in v0.78.0
func AutoInstrumentationApacheHttpd() string
func AutoInstrumentationDotNet ¶ added in v0.57.2
func AutoInstrumentationDotNet() string
func AutoInstrumentationGo ¶ added in v0.77.0
func AutoInstrumentationGo() string
func AutoInstrumentationJava ¶ added in v0.41.1
func AutoInstrumentationJava() string
func AutoInstrumentationNginx ¶ added in v0.86.0
func AutoInstrumentationNginx() string
func AutoInstrumentationNodeJS ¶ added in v0.41.1
func AutoInstrumentationNodeJS() string
func AutoInstrumentationPython ¶ added in v0.41.1
func AutoInstrumentationPython() string
func IsInstrumentationVersionUnupgradable ¶ added in v0.150.0
func IsInstrumentationVersionUnupgradable(language constants.InstrumentationLanguage, image, defaultImage string) (blocked bool, warning string)
IsInstrumentationVersionUnupgradable checks if an instrumentation image upgrade should be blocked. It first verifies the image is from the same repository as defaultImage — images from other repositories are never blocked. Then it checks whether any blocked version falls in the range between the current image tag and the default image tag (inclusive). This catches both exact matches and upgrades that would skip over a blocked version. Returns true and the warning message if blocked, false and empty string otherwise.
func OpenTelemetryCollector ¶
func OpenTelemetryCollector() string
OpenTelemetryCollector returns the default OpenTelemetryCollector to use when no versions are specified via CLI or configuration.
func OperatorOpAMPBridge ¶ added in v0.70.0
func OperatorOpAMPBridge() string
OperatorOpAMPBridge returns the default OperatorOpAMPBridge to use when no versions are specified via CLI or configuration.
func SetUnupgradableInstrumentationVersionsForTests ¶ added in v0.150.0
func SetUnupgradableInstrumentationVersionsForTests(versions map[constants.InstrumentationLanguage]map[string]string) func()
SetUnupgradableInstrumentationVersionsForTests allows tests to set custom unupgradable instrumentation versions. Returns a cleanup function that restores the original map. This function should only be used in tests.
func TargetAllocator ¶ added in v0.33.0
func TargetAllocator() string
TargetAllocator returns the default TargetAllocator to use when no versions are specified via CLI or configuration.
Types ¶
type Version ¶
type Version struct {
Operator string `json:"opentelemetry-operator"`
BuildDate string `json:"build-date"`
OpenTelemetryCollector string `json:"opentelemetry-collector-version"`
Go string `json:"go-version"`
TargetAllocator string `json:"target-allocator-version"`
OperatorOpAMPBridge string `json:"operator-opamp-bridge"`
AutoInstrumentationJava string `json:"auto-instrumentation-java"`
AutoInstrumentationNodeJS string `json:"auto-instrumentation-nodejs"`
AutoInstrumentationPython string `json:"auto-instrumentation-python"`
AutoInstrumentationDotNet string `json:"auto-instrumentation-dotnet"`
AutoInstrumentationGo string `json:"auto-instrumentation-go"`
AutoInstrumentationApacheHttpd string `json:"auto-instrumentation-apache-httpd"`
AutoInstrumentationNginx string `json:"auto-instrumentation-nginx"`
}
Version holds this Operator's version as well as the version of some of the components it uses.