The number of frames to retain.
The number of top-most frames to remove.
A function passed to Error.captureStackTrace, which causes it to ignore the frames above the top-most call to this function.
Generates a trace context header value that can be used to follow the associated request through other Google services.
An object with information sufficient for creating a serialized trace context.
Retrieves a package name from the full import path. For example: './node_modules/bar/index/foo.js' => 'bar'
Parse a cookie-style header string to extract traceId, spandId and options ex: '123456/667;o=3' -> {traceId: '123456', spanId: '667', options: '3'} note that we ignore trailing garbage if there is more than one '=' Returns null if traceId or spanId could not be found.
string representation of the trace headers
object with keys. null if there is a problem.
Truncates the provided string
to be at most length
bytes
after utf8 encoding and the appending of '...'.
We produce the result by iterating over input characters to
avoid truncating the string potentially producing partial unicode
characters at the end.
Generated using TypeDoc
Creates a StackFrame object containing a structured stack trace.