You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
Panic/Byteslice translators
In the case of panics. if users invoke recover() or they can invoke
runtime.Stack or runtime/debug.Stack and from that we can provide a translator that basically translator an error, string, byte slice into *StackFrames e.g. in package trace
We deprecated stacktrace support from OpenCensus. AFAIK, they ended up being in the proto in the first place to comply with some legacy stuff we are not interested in supporting anymore. Please open an issue at the specs repo, https://github.com/census-instrumentation/opencensus-proto, if we need to reconsider them.
I was just going through useful signals to help distinguish a trace, I noticed in the OpenCensus Proto specs that we have a definition for StackTrace
https://github.com/census-instrumentation/opencensus-proto/blob/d3b7200dbd14743faa22c6642291d76030833cbd/src/opencensus/proto/trace/v1/trace.proto#L300-L350
Perhaps we should support for stacktraces as fields of a span and provide helpers.
Options available
The Go runtime package provides the ability to retrieve stack frames e.g.
https://golang.org/pkg/runtime/#Frames
In the case of panics. if users invoke recover() or they can invoke
runtime.Stack or runtime/debug.Stack and from that we can provide a translator that basically translator an error, string, byte slice into *StackFrames e.g. in package trace
where
StackFrames
is a translation of the proto definitionExporter support
Stackdriver Trace supports exporting Stacktraces https://godoc.org/google.golang.org/genproto/googleapis/devtools/cloudtrace/v2#StackTrace
and I think other APM providers would be interested in following too.
The text was updated successfully, but these errors were encountered: