Skip to content

Commit

Permalink
Update exporters/prometheus/exporter.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
  • Loading branch information
fatsheep9146 and MrAlias committed Oct 28, 2022
1 parent 3c13c99 commit a3b6522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exporters/prometheus/exporter.go
Expand Up @@ -263,7 +263,7 @@ func createScopeInfoMetric(scope instrumentation.Scope) (prometheus.Metric, erro
values := getScopeKeyValues(scope)

desc := prometheus.NewDesc(scopeInfoMetricName, scopeInfoDescription, scopeInfoKeys, nil)
return prometheus.NewConstMetric(desc, prometheus.GaugeValue, float64(1), values...)
return prometheus.NewConstMetric(desc, prometheus.GaugeValue, float64(1), scope.Name, scope.Version)
}

func sanitizeRune(r rune) rune {
Expand Down

0 comments on commit a3b6522

Please sign in to comment.