-
Notifications
You must be signed in to change notification settings - Fork 12
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
Stack traces in (error) logs #512
Comments
Hmm, while I like getting rid of the stack traces in messages, I'm not sure whether they actually need to be exposed to users? |
I think they should be exposed. We have one user segment of advanced coders that are used to dealing with stack traces. Their main criticism of openEO is that it's a 'black box', which makes them feel out of control. Giving the possibility to see stack traces would make a connection to the open source code which they can then inspect and even improve. There's also the case of UDF's: there it is in fact the user code that can generate stack traces, so they need to see them to resolve issues. |
Okay, I'll buy that. UDFs is a really compelling argument. Then let's find a definition for it. |
Should a stracktrace field be just a string field (probably not ideal?) or an array of objects with properties such as |
hmm it might not be easy to find a common base for stack traces in various tech stacks. In case of the geopyspark driver we even have stack traces that have a part in Java/scala and a part in Python. And with that proof of concept UDF runtime for R, I think we even could produce stack traces that are a mix of R + Python + Java/Scala.
I think we can at least assume that it's possible to make the stack trace indeed an array of items, and not a single string dump. |
I think a small survey of the most common languages would make sense to see what the stacktrace related functions return.
Contributions are welcome. Looking into this more, I'm wondering whether it may be simpler to just make it an array of strings although I like the structured approach much more. Honestly I'm also wondering to what extend stack traces should be exposed by backends. Ideally you may want to limit to the user-submitted code and not expose the full depth of traces... |
(Follow-up issue for #455)
As mentioned in #455 putting full error stack traces in log messages is not a good idea, we should spec out a separate field for that.
The text was updated successfully, but these errors were encountered: