@arms/rum-core
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -16,3 +16,3 @@ import { MatchOption } from "./match"; | ||
export declare function generateTraceId(): string; | ||
export declare function generateSpanId(): string; | ||
export declare function generateSpanId(): any; | ||
export interface ITracingHeaders { | ||
@@ -19,0 +19,0 @@ [key: string]: string; |
@@ -31,3 +31,11 @@ "use strict"; | ||
function generateSpanId() { | ||
return (0, _base.generateUUID)(8); | ||
var list = new Array(16); | ||
for (var i = 0; i < 16; i++) { | ||
list[i] = Math.floor(Math.random() * 16) + 48; | ||
// valid hex characters in the range 48-57 and 97-102 | ||
if (list[i] >= 58) { | ||
list[i] += 39; | ||
} | ||
} | ||
return String.fromCharCode.apply(null, list.slice(0, 16)); | ||
} | ||
@@ -34,0 +42,0 @@ //skywalking TraceId https://github.com/apache/skywalking-client-js |
{ | ||
"name": "@arms/rum-core", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "arms rum javascript sdk core", | ||
@@ -5,0 +5,0 @@ "author": "guangli.fj <guangli.fj@alibaba-inc.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
39906
1181