@uptrace/web
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -1,3 +0,3 @@ | ||
import { Client, Config } from '@uptrace/core'; | ||
import { Config, Client } from '@uptrace/core'; | ||
export declare function createClient(cfg?: Config): Client; | ||
//# sourceMappingURL=client.d.ts.map |
@@ -15,6 +15,12 @@ "use strict"; | ||
if (!cfg.provider) { | ||
var provider = new web_1.WebTracerProvider({ | ||
resource: cfg.resource, | ||
sampler: cfg.sampler, | ||
}); | ||
var webConfig = { | ||
//plugins: [new DocumentLoad()], | ||
}; | ||
if (cfg.resource) { | ||
webConfig.resource = cfg.resource; | ||
} | ||
if (cfg.sampler) { | ||
webConfig.sampler = cfg.sampler; | ||
} | ||
var provider = new web_1.WebTracerProvider(webConfig); | ||
provider.register({ | ||
@@ -28,5 +34,2 @@ //contextManager: new ZoneContextManager(), | ||
} | ||
if (cfg.filter) { | ||
cfg.filters.push(cfg.filter); | ||
} | ||
cfg.filters.unshift(function (span) { | ||
@@ -44,3 +47,3 @@ if (!hasWindow) { | ||
}); | ||
var client = new core_1.Client(cfg); | ||
var client = core_1.createClient(cfg); | ||
if (hasWindow) { | ||
@@ -47,0 +50,0 @@ setupOnError(client); |
@@ -1,3 +0,2 @@ | ||
export * from '@uptrace/core'; | ||
export * from './client'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -13,4 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("@uptrace/core"), exports); | ||
__exportStar(require("./client"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
export declare const VERSION = "0.1.1"; | ||
export declare const VERSION = "0.1.2"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -5,3 +5,3 @@ "use strict"; | ||
// this is autogenerated file, see scripts/version-update.js | ||
exports.VERSION = '0.1.1'; | ||
exports.VERSION = '0.1.2'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@uptrace/web", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Uptrace JS exporter for browsers", | ||
@@ -54,11 +54,11 @@ "main": "build/src/index.js", | ||
"@opentelemetry/context-zone": "^0.11.0", | ||
"@opentelemetry/plugin-document-load": "^0.9.0", | ||
"@opentelemetry/plugin-document-load": "^0.10.0", | ||
"@opentelemetry/tracing": "^0.11.0", | ||
"@opentelemetry/web": "^0.11.0", | ||
"@uptrace/core": "^0.1.1" | ||
"@uptrace/core": "^0.1.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "14.6.4", | ||
"@typescript-eslint/eslint-plugin": "4.0.1", | ||
"eslint": "7.8.1", | ||
"@types/node": "14.11.1", | ||
"@typescript-eslint/eslint-plugin": "4.1.1", | ||
"eslint": "7.9.0", | ||
"eslint-plugin-node": "11.1.0", | ||
@@ -70,4 +70,4 @@ "eslint-plugin-prettier": "3.1.4", | ||
"ts-mocha": "7.0.0", | ||
"typescript": "4.0.2" | ||
"typescript": "4.0.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
8336
97
+ Added@opentelemetry/plugin-document-load@0.10.0(transitive)
- Removed@opentelemetry/api@0.10.2(transitive)
- Removed@opentelemetry/context-base@0.10.2(transitive)
- Removed@opentelemetry/core@0.10.2(transitive)
- Removed@opentelemetry/plugin-document-load@0.9.0(transitive)
- Removed@opentelemetry/resources@0.10.2(transitive)
- Removed@opentelemetry/semantic-conventions@0.10.2(transitive)
- Removed@opentelemetry/tracing@0.10.2(transitive)
- Removed@opentelemetry/web@0.10.2(transitive)
- Removedabort-controller@3.0.0(transitive)
- Removedagent-base@6.0.2(transitive)
- Removedbignumber.js@9.1.2(transitive)
- Removeddebug@4.3.7(transitive)
- Removedevent-target-shim@5.0.1(transitive)
- Removedextend@3.0.2(transitive)
- Removedgaxios@2.3.4(transitive)
- Removedgcp-metadata@3.5.0(transitive)
- Removedhttps-proxy-agent@5.0.1(transitive)
- Removedis-stream@2.0.1(transitive)
- Removedjson-bigint@0.3.1(transitive)
- Removedms@2.1.3(transitive)
Updated@uptrace/core@^0.1.2