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

Error in timeFunction if another function is nested inside #84

Open
carrieedwards opened this issue Aug 26, 2022 · 0 comments · May be fixed by #85
Open

Error in timeFunction if another function is nested inside #84

carrieedwards opened this issue Aug 26, 2022 · 0 comments · May be fixed by #85
Labels
bug Something isn't working

Comments

@carrieedwards
Copy link
Collaborator

TimeFunction generally accepts a name as a string as its parameter. However, if timeFunction is the outer function in a nested function, or a series is passed in as an argument an error occurs, as it is expected a string type. An example would be:

time(removeBelowValue(metric, 0))

or

time(metric)

Although these usages don't meet the function definition:

timeFunction(name, step=60)

It appears that Graphite web does not error out, and instead just returns a series with no name.

@carrieedwards carrieedwards added the bug Something isn't working label Aug 26, 2022
@carrieedwards carrieedwards linked a pull request Aug 29, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant