You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// get the hint from the log attributes, not from the resource// the value can be a single resource name to use as label// or a slice of string valuesifresourcesToLabel, found:=logAttrs.Get(hintResources); found {
labels:=convertAttributesToLabels(resAttrs, resourcesToLabel)
out=out.Merge(labels)
}
The text was updated successfully, but these errors were encountered:
Describe the issue you're reporting
In the example and readme it's shown that
loki.resource.labels
should be placed under resource processor.But i couldn't get it to work. Looking at the actual implementation it seems that it looks for resourceHints in log attributes
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/pkg/translator/loki/convert.go#L48
The text was updated successfully, but these errors were encountered: