diff --git a/packages/opentelemetry-api/test/context/context.test.ts b/packages/opentelemetry-api/test/context/context.test.ts index e07526b7c0..5c3c50929c 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 c3b55a3eb0..af51087ca7 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 7ead39cef0..90cac100e1 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-tracing/src/Tracer.ts b/packages/opentelemetry-tracing/src/Tracer.ts index e1a7430f42..b0286fc65d 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 e3ae904d01..ba151c4c54 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';