From ad3ce5b524e2e6eb286363e0cb103f03c02e4de1 Mon Sep 17 00:00:00 2001 From: Leonard Shi Date: Wed, 23 Aug 2017 19:04:03 +0800 Subject: [PATCH] What value should be exactly used here? --- packages/zipkin-instrumentation-grpc/package.json | 2 +- .../zipkin-instrumentation-grpc/src/ZipkinGrpcInterceptor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/zipkin-instrumentation-grpc/package.json b/packages/zipkin-instrumentation-grpc/package.json index ab4f7586..f436db13 100644 --- a/packages/zipkin-instrumentation-grpc/package.json +++ b/packages/zipkin-instrumentation-grpc/package.json @@ -1,6 +1,6 @@ { "name": "zipkin-instrumentation-grpc", - "version": "0.0.1", + "version": "0.0.6", "description": "Interceptor for instrumenting GRPC calls.", "main": "lib/index.js", "scripts": { diff --git a/packages/zipkin-instrumentation-grpc/src/ZipkinGrpcInterceptor.js b/packages/zipkin-instrumentation-grpc/src/ZipkinGrpcInterceptor.js index ad39ef78..eaff7939 100644 --- a/packages/zipkin-instrumentation-grpc/src/ZipkinGrpcInterceptor.js +++ b/packages/zipkin-instrumentation-grpc/src/ZipkinGrpcInterceptor.js @@ -29,7 +29,7 @@ class ZipkinGrpcInterceptor { this.traceId = this.tracer.id; metadata.add('X-B3-TraceId', this.tracer.id.traceId); - metadata.add('X-B3-ParentSpanId', this.tracer.id.spanId); + metadata.add('X-B3-ParentSpanId', this.tracer.id.parentId); metadata.add('X-B3-SpanId', this.tracer.id.spanId); metadata.add('X-B3-Sampled', this.tracer.id.sampled.getOrElse() ? '1' : '0');