mirror of
https://github.com/prometheus/prometheus.git
synced 2025-08-07 06:37:17 +02:00
fix linter, check error
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
parent
96199f90a2
commit
a821f0df45
@ -129,7 +129,10 @@ func (c *PrometheusConverter) createAttributes(resource pcommon.Resource, attrib
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
settings.PromoteResourceAttributes.addPromotedAttributes(c.builder, resourceAttrs, settings.AllowUTF8)
|
err := settings.PromoteResourceAttributes.addPromotedAttributes(c.builder, resourceAttrs, settings.AllowUTF8)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
if promoteScope {
|
if promoteScope {
|
||||||
// Scope Name, Version and Schema URL are added after attributes to ensure they are not overwritten by attributes.
|
// Scope Name, Version and Schema URL are added after attributes to ensure they are not overwritten by attributes.
|
||||||
c.builder.Set("otel_scope_name", scope.name)
|
c.builder.Set("otel_scope_name", scope.name)
|
||||||
|
Loading…
Reference in New Issue
Block a user