-
Notifications
You must be signed in to change notification settings - Fork 16
Special handling for exception tracebacks? #69
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
Comments
hey @zehauser Initially the plan was to include this in OT itself (see opentracing/opentracing-python#123) but it ultimately lead to us including it here. So I will cook a PR for this later today, and hope we can have soon a release with this change ;) |
Hey @carlosalberto thanks for the response! That sounds great. I have one followup request/suggestion, which is that it would be useful (if possible) to expose this functionality as a public method (or something). For example, I wonder why Otherwise, in certain situations where there is an exception that isn't going to bubble up through the Span context manager, we are going to have to reimplement the same logic. |
Hmm, it's just occurred to me that if you decide to implement this functionality in the Lightstep Recorder rather than I'm not sure what would be a better design. |
The OpenTracing specification contains some standard fields for logging exceptions, and seems to encourage tracer implementations to extract information from these standard fields:
The
opentracing
Python library helpfully catches exceptions and adds the standard log fields for us.In particular, the above code makes it clear that the intent of the
stack
field is to hold the actual traceback object itself.But when I tie all this together and go look at a sample trace in the Lightstep UI... I get this:
Which is not very useful to me! I would be better off manually doing something like this:
It seems to me that ideally Lightstep would be doing something here. What do you think?
The text was updated successfully, but these errors were encountered: