-
First, thanks for answering all my questions. Our metadata filter is working like a charm I'm now doing some exploratory work trying to capture exceptions from translations. From reading the code it seems that some commands might fail but not throw: I thought I could write a plugin to wrap the translation execution and capture exceptions to send them to Sentry.io. But from the looks of it, it isn't possible. I'm thinking maybe the dispatcher would be the way to go to do this. In our setup, reading/aggregating the logs (within a bunch of different teams) would be hard to do. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If I understand the use-case correctly it can be done on other tiers outside Spline agent, e.g.:
Direct SLF4J-to-Sentry or Log4J-to-Sentry bridges might also exist, it might be worth checking.
This is just what jumped into my mind right away. I'm sure there might be more elegant solutions to the problem. But all in all, I'm not convinced that implementing any specific error reporting mechanism (even via plugins) directly in the Agent core is worth it. Doing it on other levels would probably be more practical anyway. Does it make sense? |
Beta Was this translation helpful? Give feedback.
-
I see your point. Yes, a JUL bridge - that's what I would start with in that case. The JAR can be added into the agent bundle and if any extra programmatic initialization is needed it can be done, say in the custom lineage dispatcher constructor. I think you're right, some sort of agent life cycle hooks would be handy. I'll think about it. |
Beta Was this translation helpful? Give feedback.
I see your point. Yes, a JUL bridge - that's what I would start with in that case. The JAR can be added into the agent bundle and if any extra programmatic initialization is needed it can be done, say in the custom lineage dispatcher constructor.
I think you're right, some sort of agent life cycle hooks would be handy. I'll think about it.