Allows for future rpc metadata to be used with this mechanism
Default environment variables
Constants describing the SDK in use
only globals that common to node and browsers are allowed
Parse a string serialized in the baggage HTTP Format (without metadata): https://github.com/w3c/baggage/blob/master/baggage/HTTP_HEADER_FORMAT.md
Adds a timeout to a promise and rejects if the specified timeout has elapsed. Also rejects if the specified promise rejects, and resolves if the specified promise resolves.
NOTE: this operation will continue even after it throws a TimeoutError.
promise to use with timeout.
the timeout in milliseconds until the returned promise is rejected.
Gets the environment variables
Return the global error handler
Returns an hrtime calculated via performance component.
Convert hrTime to microseconds.
Convert hrTime to milliseconds.
Convert hrTime to nanoseconds.
Convert hrTime to timestamp, for example "2019-05-14T17:00:00.000123456Z"
check if input value is a correct types.TimeInput
check if time is HrTime
Check if {@param url} should be ignored when comparing against {@param ignoredUrls}
Checks if certain function has been already wrapped
Returns a function that logs an error using the provided logger, or a console logger if one was not provided.
Merges objects together
objects / values to be merged
Converts a number of milliseconds from epoch to HrTime([seconds, remainder in nanoseconds]).
Parses environment values
Parses information from the [traceparent] span tag and converts it into SpanContext
A meta property that comes from server. It should be dynamically generated server side to have the server's request trace Id, a parent span Id that was set on the server's request span, and the trace flags to indicate the server's sampling decision (01 = sampled, 00 = not sampled). for example: '{version}-{traceId}-{spanId}-{sampleDecision}' For more information see https://www.w3.org/TR/trace-context/
Set the global error handler
Converts a TimeInput to an HrTime, defaults to _hrtime().
Generated using TypeDoc
Defines an error handler function