Log JIRA exceptions to Sentry

Hi,

I was wondering if there is a way to redirect raised exceptions to a centralised sentry facility, instead of local log file, using the appropriate log appender provided by https://github.com/getsentry/sentry-java

Regards,

y.

3 answers

1 accepted

This widget could not be displayed.

Some more light to this; according to the sentry-java documentation the DSN should be passed as an argument either as environmental or java variable. Whenever I tried to pass it with either ways, I got some JIRA plugins not initialised and eventually JIRA was locked.

I then hot-patched the DSN into the java code and recompiled it, omitting the need to pass DSN as an argument during runtime. While building the packages, I realised that the jackson-core class was also required, however, no exception with regard to this was ever raised while JIRA was starting.

Eventually, I copied all jackson-core, sentry-java, sentry-log4j into the library directory and passed the DSN as a java argument and everything works.

This widget could not be displayed.

JIRA uses log4j for its logging, which can be set up to log to remote systems instead of a local file.  I can't tell you if that would work for sentry-java though, I've not used it.

This widget could not be displayed.

Indeed, I compiled the appropriate classes and installed them in the tomcat's library directory but seems that I missing something on how to set correctly the DSN in the log4j.properties.

Hmm.  Last time I did that, I was able to just set the remote server in the log4j properties file and it worked fine.    But that was a while ago (years)

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

144 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you