fix linter, check error

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
This commit is contained in:
György Krajcsovits 2025-08-05 15:15:55 +02:00
parent 96199f90a2
commit a821f0df45
No known key found for this signature in database
GPG Key ID: 47A8F9CE80FD7C7F

View File

@ -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 {
// 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)