Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/** The display name of the span. */
name = DEFAULT_SPAN_NAME;
/** Kind of span. */
kind: webTypes.SpanKind = webTypes.SpanKind.UNSPECIFIED;
/** An object to log information to. Logs to the JS console by default. */
logger: webTypes.Logger = console;
/**
* Status associated with this span. Defaults to OK status. Note that the
* `code` is not an HTTP status, but is a specific trace status code. See:
* https://github.com/census-instrumentation/opencensus-specs/blob/master/trace/HTTP.md#mapping-from-http-status-codes-to-trace-status-codes
*/
status: webTypes.Status = { code: webTypes.CanonicalCode.OK };
/** A set of attributes, each in the format [KEY]:[VALUE] */
attributes: webTypes.Attributes = {};
/** Text annotations with a set of attributes. */
annotations: webTypes.Annotation[] = [];
/** Event describing messages sent/received between Spans. */
messageEvents: webTypes.MessageEvent[] = [];
/** Pointers from the current span to another span */
links: webTypes.Link[] = [];
/** Start time of the span as measured by the browser performance clock. */
startPerfTime = 0;