From c3a7bf8aab56990b8d9072c68e8ecc7cd4a01d1e Mon Sep 17 00:00:00 2001 From: Niraj Kamdar Date: Wed, 22 Sep 2021 20:16:41 +0530 Subject: [PATCH 1/2] feat(tracing-js): add serviceName for Tracer --- packages/js/tracing/src/index.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/js/tracing/src/index.ts b/packages/js/tracing/src/index.ts index 875e8d2f38..57833e2042 100644 --- a/packages/js/tracing/src/index.ts +++ b/packages/js/tracing/src/index.ts @@ -25,9 +25,9 @@ export class Tracer { | null = null; private static _spans: Array = []; - static enableTracing(tracerName: string): void { + static enableTracing(tracerName: string, serviceName = "Polywrap"): void { this.traceEnabled = true; - this._initProvider(); + this._initProvider(serviceName); if (this._provider) { this._tracer = this._provider.getTracer(tracerName) as otTracer; @@ -129,7 +129,7 @@ export class Tracer { }; } - static _initProvider(): void { + static _initProvider(serviceName: string): void { if (this._provider) return; if (typeof window === "undefined") { @@ -140,7 +140,11 @@ export class Tracer { // Configure span processor to send spans to the exporter this._provider.addSpanProcessor( - new SimpleSpanProcessor(new ZipkinExporter()) + new SimpleSpanProcessor( + new ZipkinExporter({ + serviceName: serviceName, + }) + ) ); this._provider.register(); From 7058a0c87797904980bd48d18db562a1fc857030 Mon Sep 17 00:00:00 2001 From: dOrgJelli Date: Thu, 23 Sep 2021 14:36:01 +0200 Subject: [PATCH 2/2] prep 0.0.1-prealpha.45 --- CHANGELOG.md | 4 ++++ VERSION | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d202d9fba6..8e44d030d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# Web3API 0.0.1-prealpha.45 +## Features +* `@web3api/tracing-js`: Support service name configuration. + # Web3API 0.0.1-prealpha.44 ## Features * `@web3api/client-js`: Use Fleek's IPFS gateway. diff --git a/VERSION b/VERSION index 17c8370c46..b99065762a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.1-prealpha.44 \ No newline at end of file +0.0.1-prealpha.45 \ No newline at end of file