This repository has been archived by the owner on Aug 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 149
No SetExtraContext function? #111
Comments
You can't, it's hard coded: https://github.com/getsentry/raven-go/blob/master/client.go#L163-L175 // NewPacket constructs a packet with the specified message and interfaces.
func NewPacket(message string, interfaces ...Interface) *Packet {
extra := map[string]interface{}{
"runtime.Version": runtime.Version(),
"runtime.NumCPU": runtime.NumCPU(),
"runtime.GOMAXPROCS": runtime.GOMAXPROCS(0), // 0 just returns the current value
"runtime.NumGoroutine": runtime.NumGoroutine(),
}
return &Packet{
Message: message,
Interfaces: interfaces,
Extra: extra,
}
} I'd like this feature too. For now, we're sending the variable data as tags which isn't ideal. |
Update. #134 addresses this. |
syndbg
added a commit
to syndbg/raven-go
that referenced
this issue
Apr 11, 2017
syndbg
added a commit
to syndbg/raven-go
that referenced
this issue
Jun 1, 2017
syndbg
added a commit
to syndbg/raven-go
that referenced
this issue
Jun 1, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
How can I set extra content described in https://docs.sentry.io/learn/context/#extra-context ?
The text was updated successfully, but these errors were encountered: