-
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
Func Concat doesn't accept output of Split #27821
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Oh thats interesting. Since OTTL Converters don't have an associated Return Type yet, the grammar doesn't recognize that a Converter could be a valid input for the list it is expecting. In fact, the I think we need to adjust the input type to be something like a |
For your needs though, you probably want to do processors:
transform:
trace_statements:
-context: span
statements:
- replace_pattern(attributes["a"], "-", "") |
Yes, I ended up doing something like that. Although in our scenerio we have todo something such as: processors:
transform:
trace_statements:
-context: span
statements:
-set(attributes["a"], attributes["b"])
- replace_pattern(attributes["a"], "-", "")
- set(trace_id.string, attributes["a"])
- delete(atributes, "a") And this is only because most UUID libraries encode with |
Have you tried doing |
It doesn't as that was the first thing i tried. It complains its not 32 hex characters. But if I replace the |
I experimented for a bit today on what it would take so that |
OTTL is working as expected right now tho - to allow this type of behavior would be a new feature. |
Would it be easier to allow the traceId/spanId to parse |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
I also have issues with Concat. I am trying to concat this array: https://github.com/kubernetes/api/blob/master/core/v1/types.go#L5510, which is essentially a
|
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Component(s)
processor/transform
What happened?
Description
The OTL func
Concat
complains that the output from a funcSplit
is notStringLIkeGetter
Steps to Reproduce
Use
transformprocessor
to adjust attribute values (or a UUID)Expected Result
Setting the value of attribute["a"] to the split and then rejoined string.
Actual Result
doesnt work; throws error if you try to pass a value from an attribute.
Collector version
0.87.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: