-
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] Express context cache as a map[string]any. #26108
Comments
@evan-bradley with the new This change will impact complex indexing, so we'll have to be careful. |
We started working on this and the impact to complex indexing is non-trivial. |
Related to this problem, I was just shown the scenario
that produces an error:
Although the language does support indexing the return value of the Converter, it only supports indexing opentelemetry-collector-contrib/pkg/ottl/expression.go Lines 98 to 112 in 60430e1
|
I think this is a separate issue, but I agree that we should be able to index any slice type that is supported in OTTL. |
I've started thinking about this problem again and I keep getting stuck on how much we lose my making I've come up with a couple alternative solutions I'd like to discuss.
|
Thinking about this issue some more: If the primary goal is to be able to store I believe all other types can be expressed in the |
With the release of the If this issue comes up again we can reopen this issue. |
Component(s)
pkg/ottl
Is your feature request related to a problem? Please describe.
Separate ticket from #22010
Describe the solution you'd like
We need to update all the cache accessors to be able to handle getting and setting time.Time and time.Duration.
More info to come.
Describe alternatives you've considered
No response
Additional context
@fchikwekwe is intending to work on this. Further comment expected from @TylerHelmuth .
The text was updated successfully, but these errors were encountered: