modulepackage
0.0.0-20230329121623-86d5350b34cb
Repository: https://github.com/carousell/go-notifier.git
Documentation: pkg.go.dev
# README
notifier
# Functions
AddToOptions adds options to context.
FromContext fetches options from provided context.
No description provided by the author
No description provided by the author
No description provided by the author
GetTraceId fetches traceID from context.
New creates a new error with stack information.
No description provided by the author
NewStdNotifier returns Notifier which logs on default logger.
NewWithGRPCCode creates a new error with statck information and GRPC status with the given GRPC code.
NewWithSkip creates a new error skipping the number of function on the stack.
NewWithSkipAndStatus creates a new error skipping the number of function on the stack and GRPC status.
NewWithStatus creates a new error with statck information and GRPC status.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SetBaseFilePath sets the base file path for linking source code with reported stack information.
No description provided by the author
SetTraceId updates the traceID based on context values.
Wrap wraps an existing error and appends stack information if it does not exist.
WrapWithGRPCCode wraps an existing error and appends stack information if it does not exist along with GRPC status with the given GRPC code.
WrapWithSkip wraps an existing error and appends stack information if it does not exist skipping the number of function on the stack.
WrapWithSkipAndStatus wraps an existing error and appends stack information if it does not exist skipping the number of function on the stack along with GRPC status.
WrapWithStatus wraps an existing error and appends stack information if it does not exist along with GRPC status.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
StackFrame represents the stackframe for tracing exception.