Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[processor/span] Add 'keep_original_name' #36120

Conversation

lopes-felipe
Copy link
Contributor

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.

@lopes-felipe
Copy link
Contributor Author

Hey @fatsheep9146 and @atoulme, would you mind taking a look at this whenever you can? :)

Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. Codeowners please review

@andrzej-stencel
Copy link
Member

Thanks for the chat during KubeCon OTel Contribfest @lopes-felipe! Happy to merge this pull request as soon as the conflicts are resolved.

jpkrohling pushed a commit that referenced this pull request Nov 16, 2024
This is another version of
#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`](https://github.com/DataDog/dd-trace-java/blob/a420d2c66ade70af0ebc8c58ee2d4784bb0de38a/dd-java-agent/agent-otel/otel-shim/src/main/java/datadog/opentelemetry/shim/trace/OtelConventions.java#L168)),
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.

---------

Co-authored-by: Felipe Lopes <[email protected]>
@lopes-felipe
Copy link
Contributor Author

Merged via #36397

@lopes-felipe lopes-felipe deleted the span-processor/keep-original-name branch November 16, 2024 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants