-
Notifications
You must be signed in to change notification settings - Fork 182
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
Docs feedback: decision_cache is documented as a block but behaves as an attribute #1813
Comments
I'm not sure about the "argument" terminology, I think the syntax reference calls these "attributes": https://grafana.com/docs/alloy/latest/get-started/configuration-syntax/syntax/#attributes |
Adding full error message received for future searchability:
@jdbaldry is correct - I was saying |
This should have been a block, but its encoded in the config now and we cant change it without breaking backwards compat. |
@mattdurham I've opened a PR to update the docs to reflect how this was implemented in the code. Do we want to change the docs, keeping it as an attribute, or fix |
IMO changing the code breaks the compatibility, which we could justify saying it’s a bug but I don’t feel good with that route. |
Let’s change the docs and I will see if I can think of a new name that is correct and we mark the old one as deprecated ? |
URL
https://grafana.com/docs/alloy/latest/reference/components/otelcol/otelcol.processor.tail_sampling/#otelcolprocessortail_sampling
Feedback
Slack discussion: https://raintank-corp.slack.com/archives/CSN5HV0CQ/p1727891950877629
According to the documentation,
decision_cache
is a block, and would be added to thealloy.config
file as:This configuration generates an error similar to:
The configuration works as expected if you add
decision_cache
formatted as an attribute like this:And confirmed here:
If this is the correct behaviour, the documentation needs to be updated.
The text was updated successfully, but these errors were encountered: