-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[pkg/ottl] Issue with the hash value of a match group in the replace_pattern editors #29409
Comments
rnishtala-sumo
added
bug
Something isn't working
needs triage
New item requiring triage
labels
Nov 20, 2023
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Please take a look at this attempt to fix this bug: #29408 |
Looks like a code owner is reviewing PR, I'll take that to mean it's a valid issue, no longer needing the |
TylerHelmuth
added a commit
that referenced
this issue
Jan 8, 2024
…eplace_pattern editors (#29408) **Description:** Fix issue with the hash value of a match group in replace_pattern* **Link to tracking Issue:** #29409 --------- Co-authored-by: Tyler Helmuth <[email protected]>
cparkins
pushed a commit
to AmadeusITGroup/opentelemetry-collector-contrib
that referenced
this issue
Jan 10, 2024
…eplace_pattern editors (open-telemetry#29408) **Description:** Fix issue with the hash value of a match group in replace_pattern* **Link to tracking Issue:** open-telemetry#29409 --------- Co-authored-by: Tyler Helmuth <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Component(s)
pkg/ottl
What happened?
Description
It has been reported that the hash value of a match group is incorrect. For example
Given the following message
Body: Map({"message":"device=test hello"})
using the following ottl statement
returns the following incorrect hash value
instead if the right hash value
this is because the current
replace_pattern
function hashes "$1" instead of "test" for the match group, i.e it doesn't resolve $1 to "test" before applying the hash function.Steps to Reproduce
Described above
Expected Result
Described above (Correct hash value)
Actual Result
Described above (Incorrect hash value)
Collector version
v0.89.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: