Files
a92aa908a7 [chore] add checkapi to tools (#12954)
Adds checkapi to the tools and a make target to run it.

Fixes #12360

---------

Co-authored-by: Hanzo Dev <[email protected]>
Co-authored-by: Evan Bradley <[email protected]>
Co-authored-by: Alex Boten <[email protected]>
2025-05-05 15:52:16 +00:00

30 lines
814 B
Go

// Copyright The OpenTelemetry Authors
// SPDX-License-Identifier: Apache-2.0
package component // import "go.opentelemetry.io/collector/component"
// BuildInfo is the information that is logged at the application start and
// passed into each component. This information can be overridden in custom build.
type BuildInfo struct {
// Command is the executable file name, e.g. "otelcol".
Command string
// Description is the full name of the collector, e.g. "OpenTelemetry Collector".
Description string
// Version string.
Version string
// prevent unkeyed literal initialization
_ struct{}
}
// NewDefaultBuildInfo returns a default BuildInfo.
func NewDefaultBuildInfo() BuildInfo {
return BuildInfo{
Command: "otelcol",
Description: "OpenTelemetry Collector",
Version: "latest",
}
}