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

Support adding cause as attribute on recorded exception #32811

Closed
JakeGinnivan opened this issue Jan 31, 2025 · 1 comment
Closed

Support adding cause as attribute on recorded exception #32811

JakeGinnivan opened this issue Jan 31, 2025 · 1 comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@JakeGinnivan
Copy link

Is your feature request related to a problem? Please describe.

When using the span.recordException, it does not record the cause attribute which means inner exceptions are lost.

Describe the solution you'd like

Use https://github.com/sindresorhus/serialize-error or similar approaches to ensure error information is not dropped.

Describe alternatives you've considered

Not using the in-built span.recordException function, instead writing a custom one which does not drop information from the exception.

Additional context

@JakeGinnivan JakeGinnivan closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2025
@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 31, 2025
@JakeGinnivan
Copy link
Author

Meant to report this to the underlying OTEL JS library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

1 participant