Documentation ¶
Index ¶
- Constants
- Variables
- func EnhanceStackTrace(ctx context.Context, input []*publicModel.StackFrameInput, projectId int, ...) ([]*privateModel.ErrorTrace, error)
- func FormatStructureStackTrace(ctx context.Context, stackTrace string) string
- func StructureOTELStackTrace(stackTrace string) ([]*publicModel.ErrorTrace, error)
- type DiskFetcher
- type Language
- type NetworkFetcher
Constants ¶
View Source
const ERROR_CONTEXT_LINES = 5
View Source
const ERROR_CONTEXT_MAX_LENGTH = 1000
View Source
const ERROR_STACK_MAX_FIELD_SIZE = 1000
View Source
const ERROR_STACK_MAX_FRAME_COUNT = 64
View Source
const SOURCE_MAP_MAX_FILE_SIZE = 128e6
Variables ¶
View Source
var NextNodeServerlessRegex = regexp.MustCompile(`/var/task/.+/\.next/(.+)`)
Functions ¶
func EnhanceStackTrace ¶
func EnhanceStackTrace(ctx context.Context, input []*publicModel.StackFrameInput, projectId int, version *string, storageClient storage.Client) ([]*privateModel.ErrorTrace, error)
* EnhanceStackTrace makes no DB changes * It loops through the stack trace, for each : * fetches the sourcemap from remote * maps the error info into slice
func StructureOTELStackTrace ¶
func StructureOTELStackTrace(stackTrace string) ([]*publicModel.ErrorTrace, error)
StructureOTELStackTrace processes a backend opentelemetry stacktrace into a structured ErrorTraces. The operation returns the deepest frame first (reversing the order of the incoming stacktrace).
Types ¶
type DiskFetcher ¶
type DiskFetcher struct{}
type Language ¶
type Language string
const DotNET Language = "dotnet"
const Golang Language = "golang"
const Javascript Language = "js"
const Python Language = "python"
const Ruby Language = "ruby"
type NetworkFetcher ¶
type NetworkFetcher struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.