Skip to content

Commit

Permalink
docs: Explain Frame.Module and Frame.Package (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhcarvalho authored Oct 11, 2021
1 parent 8ba8dfb commit 2a68520
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions stacktrace.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,16 @@ func extractXErrorsPC(err error) []uintptr {
// Frame represents a function call and it's metadata. Frames are associated
// with a Stacktrace.
type Frame struct {
Function string `json:"function,omitempty"`
Symbol string `json:"symbol,omitempty"`
Module string `json:"module,omitempty"`
Function string `json:"function,omitempty"`
Symbol string `json:"symbol,omitempty"`
// Module is, despite the name, the Sentry protocol equivalent of a Go
// package's import path.
Module string `json:"module,omitempty"`
// Package is not used for Go stack trace frames. In other platforms it
// refers to a container where the Module can be found. For example, a
// Java JAR, a .NET Assembly, or a native dynamic library.
// It exists for completeness, allowing the construction and reporting
// of custom event payloads.
Package string `json:"package,omitempty"`
Filename string `json:"filename,omitempty"`
AbsPath string `json:"abs_path,omitempty"`
Expand Down

0 comments on commit 2a68520

Please sign in to comment.