Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarchaud committed Sep 24, 2020
1 parent f7df52d commit 41c1fc1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/opentelemetry-api/test/context/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 1 addition & 4 deletions packages/opentelemetry-plugin-http/src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 4 additions & 1 deletion packages/opentelemetry-shim-opentracing/src/shim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
);
Expand Down
4 changes: 3 additions & 1 deletion packages/opentelemetry-tracing/src/Tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ export class Tracer implements api.Tracer {
bind<T>(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()
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 41c1fc1

Please sign in to comment.