Skip to content

Commit

Permalink
model: add "classname" to stacktrace frames (#862)
Browse files Browse the repository at this point in the history
This will be used by the OpenTelemetry exporter.
We should probably be using this for named type
methods in the Go Agent too, but that can come
later.
  • Loading branch information
axw authored Dec 18, 2020
1 parent 0a73d5b commit 18a8126
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/marshal_fastjson.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,9 @@ type StacktraceFrame struct {
// use the package path (e.g. "net/http").
Module string `json:"module,omitempty"`

// Classname holds the name of the class to which the frame belongs.
Classname string `json:"classname,omitempty"`

// Function holds the name of the function to which the frame belongs.
Function string `json:"function,omitempty"`

Expand Down

0 comments on commit 18a8126

Please sign in to comment.