Skip to content

Commit

Permalink
revert accidental vendor file change
Browse files Browse the repository at this point in the history
  • Loading branch information
grcevski committed Feb 24, 2025
1 parent dc1e1c4 commit f36d4f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 5 additions & 1 deletion pkg/export/otel/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ const (
FeatureEBPF = "ebpf"
)

// GrafanaHostIDKey is the same attribute Key as HostIDKey, but used for
// traces_target_info
const GrafanaHostIDKey = attribute.Key("grafana.host.id")

type MetricsConfig struct {
Interval time.Duration `yaml:"interval" env:"BEYLA_METRICS_INTERVAL"`
// OTELIntervalMS supports metric intervals as specified by the standard OTEL definition.
Expand Down Expand Up @@ -797,7 +801,7 @@ func (mr *MetricsReporter) metricResourceAttributes(service *svc.Attrs) attribut

func (mr *MetricsReporter) metricHostAttributes() attribute.Set {
attrs := []attribute.KeyValue{
semconv.GrafanaHostID(mr.hostID),
GrafanaHostIDKey.String(mr.hostID),
}

return attribute.NewSet(attrs...)
Expand Down
9 changes: 0 additions & 9 deletions vendor/go.opentelemetry.io/otel/semconv/v1.19.0/resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f36d4f2

Please sign in to comment.