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

Logging exceptions doesn't include filename in the kibana apm dashboard #440

Closed
mterwoord opened this issue Aug 12, 2019 · 7 comments
Closed
Labels
bug Something isn't working

Comments

@mterwoord
Copy link

Describe the bug
I have a simple asp.net core web application, which logs to my APM server. Now I have a controller action that does a simple throw new Exception("My error!");
This exception is showing up in the apm dashboard in kibana, but the filename shown is the full class name of my controller, not the filename.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new asp.net core web application
  2. Enable apm logging
  3. Add the aforementioned exception statement to an action
  4. Trigger the exception
  5. See the exception in the kibana apm dashboard.

Expected behavior
The file location (line number) is correct, but the file name isn't.

@mterwoord mterwoord added the bug Something isn't working label Aug 12, 2019
@SergeyKleyman
Copy link
Contributor

@mterwoord Thank for reporting the issue. We can confirm that it's a known issue (for example see #265) and we will update this issue soon on how we plan to handle it.

@mterwoord
Copy link
Author

@SergeyKleyman Thanks for letting me know. I subscribed to the notifications of that issue, and hope the issue will be solved soon. Keep up the great work!

@SergeyKleyman
Copy link
Contributor

@mterwoord if you don't mind I would like to keep this issue open since #265 is much more narrow in scope and #265 is not a bug issue.

@SergeyKleyman SergeyKleyman reopened this Aug 14, 2019
@mterwoord
Copy link
Author

If there is anything I can do to solve this issue, I'd be happy to help.

@SergeyKleyman
Copy link
Contributor

Thank you very much for the offer - the solution is very simple but we need to discuss internally how to reconcile it with the past decisions on which the current implementation is based.

If you would like to offer a PR you are very welcome to do so.

@mterwoord
Copy link
Author

So, basically first you guys need to decide internally first? Then I'll hold off on a PR for now, if you don't mind..

@gregkalapos
Copy link
Contributor

This is somewhat of a duplicate of #677.

A PR to clean this up is already open: #848

Once #848 is merged we'll send the file name in the filename field and the class name in the classname field, so you'll have both. Filename is either the .cs file name if we have pdbs, or the file name of the assembly that contains the given class.

The reason we haven't sent the file name before was that there was no field to send the class name to the APM server, therefore we decided to put the classname into the filename field. The thinking behind was that class name in .NET is more important given that in a single file (.cs file or a big .dll assembly) you could have lots of classes.

But with #848 this'll be over and we'll do this nicely.

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

No branches or pull requests

3 participants