From 41c1fc105825204c2ec1599a33c948f8f26e259c 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 +- 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 +---- 5 files changed, 10 insertions(+), 11 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-plugin-http/src/http.ts b/packages/opentelemetry-plugin-http/src/http.ts index 7ead39cef07..9818bbf8a7c 100644 --- a/packages/opentelemetry-plugin-http/src/http.ts +++ b/packages/opentelemetry-plugin-http/src/http.ts @@ -25,11 +25,8 @@ import { TraceFlags, getExtractedSpanContext, } from '@opentelemetry/api'; +import { BasePlugin, NoRecordingSpan } from '@opentelemetry/core'; import { - BasePlugin, - NoRecordingSpan, -} from '@opentelemetry/core'; -import type { ClientRequest, IncomingMessage, RequestOptions, 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';