From 3fd83fb062682a9023ab0b6d9aab7466e18e8c98 Mon Sep 17 00:00:00 2001 From: vmarchaud Date: Sat, 19 Sep 2020 15:58:28 +0200 Subject: [PATCH] chore: lint --- packages/opentelemetry-api/test/context/context.test.ts | 2 +- .../src/context/propagation/B3Propagator.ts | 2 +- packages/opentelemetry-plugin-http/src/http.ts | 5 +---- packages/opentelemetry-shim-opentracing/src/shim.ts | 5 ++++- packages/opentelemetry-tracing/src/Tracer.ts | 4 +++- .../opentelemetry-tracing/src/export/BatchSpanProcessor.ts | 5 +---- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/opentelemetry-api/test/context/context.test.ts b/packages/opentelemetry-api/test/context/context.test.ts index e07526b7c02..5c3c50929c6 100644 --- a/packages/opentelemetry-api/test/context/context.test.ts +++ b/packages/opentelemetry-api/test/context/context.test.ts @@ -15,7 +15,7 @@ */ import * as assert from 'assert'; -import { ROOT_CONTEXT, createContextKey } from '@opentelemetry/context-base' +import { ROOT_CONTEXT, createContextKey } from '@opentelemetry/context-base'; import { suppressInstrumentation, unsuppressInstrumentation, diff --git a/packages/opentelemetry-core/src/context/propagation/B3Propagator.ts b/packages/opentelemetry-core/src/context/propagation/B3Propagator.ts index c3b55a3eb0b..af51087ca74 100644 --- a/packages/opentelemetry-core/src/context/propagation/B3Propagator.ts +++ b/packages/opentelemetry-core/src/context/propagation/B3Propagator.ts @@ -24,7 +24,7 @@ import { setExtractedSpanContext, } from '@opentelemetry/api'; -import { createContextKey } from '@opentelemetry/context-base' +import { createContextKey } from '@opentelemetry/context-base'; export const X_B3_TRACE_ID = 'x-b3-traceid'; export const X_B3_SPAN_ID = 'x-b3-spanid'; diff --git a/packages/opentelemetry-plugin-http/src/http.ts b/packages/opentelemetry-plugin-http/src/http.ts index 7ead39cef07..90cac100e19 100644 --- a/packages/opentelemetry-plugin-http/src/http.ts +++ b/packages/opentelemetry-plugin-http/src/http.ts @@ -25,10 +25,7 @@ import { TraceFlags, getExtractedSpanContext, } from '@opentelemetry/api'; -import { - BasePlugin, - NoRecordingSpan, -} from '@opentelemetry/core'; +import { BasePlugin, NoRecordingSpan } from '@opentelemetry/core'; import type { ClientRequest, IncomingMessage, diff --git a/packages/opentelemetry-shim-opentracing/src/shim.ts b/packages/opentelemetry-shim-opentracing/src/shim.ts index a9a03bf08c1..a7f067d86f6 100644 --- a/packages/opentelemetry-shim-opentracing/src/shim.ts +++ b/packages/opentelemetry-shim-opentracing/src/shim.ts @@ -178,7 +178,10 @@ export class TracerShim extends opentracing.Tracer { carrier, api.defaultSetter, setCorrelationContext( - api.setExtractedSpanContext(api.ROOT_CONTEXT, oTelSpanContext), + api.setExtractedSpanContext( + api.ROOT_CONTEXT, + oTelSpanContext + ), oTelSpanCorrelationContext ) ); diff --git a/packages/opentelemetry-tracing/src/Tracer.ts b/packages/opentelemetry-tracing/src/Tracer.ts index e1a7430f42f..b0286fc65d6 100644 --- a/packages/opentelemetry-tracing/src/Tracer.ts +++ b/packages/opentelemetry-tracing/src/Tracer.ts @@ -149,7 +149,9 @@ export class Tracer implements api.Tracer { bind(target: T, span?: api.Span): T { return api.context.bind( target, - span ? api.setActiveSpan(api.context.active(), span) : api.context.active() + span + ? api.setActiveSpan(api.context.active(), span) + : api.context.active() ); } diff --git a/packages/opentelemetry-tracing/src/export/BatchSpanProcessor.ts b/packages/opentelemetry-tracing/src/export/BatchSpanProcessor.ts index e3ae904d014..ba151c4c542 100644 --- a/packages/opentelemetry-tracing/src/export/BatchSpanProcessor.ts +++ b/packages/opentelemetry-tracing/src/export/BatchSpanProcessor.ts @@ -15,10 +15,7 @@ */ import { context, suppressInstrumentation } from '@opentelemetry/api'; -import { - ExportResult, - unrefTimer, -} from '@opentelemetry/core'; +import { ExportResult, unrefTimer } from '@opentelemetry/core'; import { SpanProcessor } from '../SpanProcessor'; import { BufferConfig } from '../types'; import { ReadableSpan } from './ReadableSpan';