Skip to content

Allow users to include stacktrace in events #38

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

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

sysradium
Copy link
Contributor

@sysradium sysradium commented Mar 10, 2025

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

OpenTelemetry automatically records panics as events:
https://github.com/open-telemetry/opentelemetry-go/blob/0c49ece8056617e5c1d1318805e74cbbbc33c7b2/sdk/trace/span.go#L465
image
But as you can it does not record stacktraces. I think it is useful if you don't use otel logger with logging.WithRecordStackTraceInSpan

@sysradium sysradium force-pushed the allow-stractrace-recording branch from 509dc7a to 9d32b82 Compare March 10, 2025 12:36
@sysradium sysradium marked this pull request as ready for review March 10, 2025 12:42
@zstone12
Copy link
Collaborator

@sysradium Stack trace inside exception events that is indeed necessary. Thank you for your contribution.

@zstone12 zstone12 merged commit 14ddd27 into go-gorm:master Mar 17, 2025
2 checks passed
@sysradium sysradium deleted the allow-stractrace-recording branch March 17, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants