-
-
Notifications
You must be signed in to change notification settings - Fork 183
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
Carry stack location in span #2666
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We could add an option to carry the location of a span by generating a new Error() and forward that to the attributes, we could do it optionally by adding a new positional parameter that enable/disable generation. This would allow enhancing the stack print of errors with source location for the spans.
Additionally we could also expose a functionWithSpan API that allows a user to define a function that is automatically traced, something like:
cc @tim-smart
The text was updated successfully, but these errors were encountered: