Some tracing libraries add some attributes into the span name (ex for the db.system), which can be further used to extract it as span attributes with this very processor. However, when that is done, the span name is replaced by a placeholder containing the attribute name.
This PR adds the possibility of keeping the original span name unchanged with a keep_original_name config property, but keeping the existing behavior (renaming the span) as the default option.
This is another version of https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/36120 with fixed conflicts. Thanks @lopes-felipe for creating it!
Description
Some tracing libraries add some attributes into the span name (ex for the
db.system
), which can be further used to extract it as span attributes with this very processor. However, when that is done, the span name is replaced by a placeholder containing the attribute name.This PR adds the possibility of keeping the original span name unchanged with a
keep_original_name
config property, but keeping the existing behavior (renaming the span) as the default option.