github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor
Package attributesprocessor contains the logic to modify attributes of a span.
go get github.com/open-telemetry/opentelemetry-collector-contrib/processor/attributesprocessor