mirror of
https://github.com/hanzoai/telemetry.git
synced 2026-10-30 20:01:49 +00:00
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]>
30 lines
814 B
Go
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",
|
|
}
|
|
}
|