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 a3b6522 commit 78201e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exporters/prometheus/exporter.go
Expand Up @@ -262,7 +262,8 @@ func (c *collector) createInfoMetric(name, description string, res *resource.Res
func createScopeInfoMetric(scope instrumentation.Scope) (prometheus.Metric, error) {
values := getScopeKeyValues(scope)

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

Expand Down

0 comments on commit 78201e9

Please sign in to comment.