From 1905d58c7ecd057e48dfd948cdabe7168db792d7 Mon Sep 17 00:00:00 2001 From: Daniel Dyla Date: Tue, 12 Dec 2023 22:34:04 -0500 Subject: [PATCH] lint --- .../test/functionals/https-package.test.ts | 4 +++- .../opentelemetry-sdk-node/test/sdk.test.ts | 4 +--- experimental/packages/shim-opencensus/test/util.ts | 4 +--- .../src/NodeTracerProvider.ts | 4 +--- .../test/registration.test.ts | 14 +++++++++----- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/experimental/packages/opentelemetry-instrumentation-http/test/functionals/https-package.test.ts b/experimental/packages/opentelemetry-instrumentation-http/test/functionals/https-package.test.ts index 1ba13acc336..80a003f535d 100644 --- a/experimental/packages/opentelemetry-instrumentation-http/test/functionals/https-package.test.ts +++ b/experimental/packages/opentelemetry-instrumentation-http/test/functionals/https-package.test.ts @@ -90,7 +90,9 @@ describe('Packages', () => { it(`should create a span for GET requests and add propagation headers by using ${name} package`, async () => { nock.load(path.join(__dirname, '../', '/fixtures/google-https.json')); - const urlparsed = url.parse('https://www.google.com/search?q=axios&oq=axios&aqs=chrome.0.69i59l2j0l3j69i60.811j0j7&sourceid=chrome&ie=UTF-8'); + const urlparsed = url.parse( + 'https://www.google.com/search?q=axios&oq=axios&aqs=chrome.0.69i59l2j0l3j69i60.811j0j7&sourceid=chrome&ie=UTF-8' + ); const result = await httpPackage.get(urlparsed.href!); if (!resHeaders) { const res = result as AxiosResponse; diff --git a/experimental/packages/opentelemetry-sdk-node/test/sdk.test.ts b/experimental/packages/opentelemetry-sdk-node/test/sdk.test.ts index 927d7245948..512d65bc651 100644 --- a/experimental/packages/opentelemetry-sdk-node/test/sdk.test.ts +++ b/experimental/packages/opentelemetry-sdk-node/test/sdk.test.ts @@ -24,9 +24,7 @@ import { metrics, DiagConsoleLogger, } from '@opentelemetry/api'; -import { - AsyncLocalStorageContextManager, -} from '@opentelemetry/context-async-hooks'; +import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks'; import { CompositePropagator } from '@opentelemetry/core'; import { AggregationTemporality, diff --git a/experimental/packages/shim-opencensus/test/util.ts b/experimental/packages/shim-opencensus/test/util.ts index 28497934f6b..0d34bd3cca1 100644 --- a/experimental/packages/shim-opencensus/test/util.ts +++ b/experimental/packages/shim-opencensus/test/util.ts @@ -22,9 +22,7 @@ import { SimpleSpanProcessor, } from '@opentelemetry/sdk-trace-base'; import { ShimTracer } from '../src/ShimTracer'; -import { - AsyncLocalStorageContextManager, -} from '@opentelemetry/context-async-hooks'; +import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks'; import { Tracer, TracerProvider, context } from '@opentelemetry/api'; export async function withTestTracer( diff --git a/packages/opentelemetry-sdk-trace-node/src/NodeTracerProvider.ts b/packages/opentelemetry-sdk-trace-node/src/NodeTracerProvider.ts index ddecb088940..abb25f4db91 100644 --- a/packages/opentelemetry-sdk-trace-node/src/NodeTracerProvider.ts +++ b/packages/opentelemetry-sdk-trace-node/src/NodeTracerProvider.ts @@ -13,9 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { - AsyncLocalStorageContextManager, -} from '@opentelemetry/context-async-hooks'; +import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks'; import { B3Propagator, B3InjectEncoding } from '@opentelemetry/propagator-b3'; import { BasicTracerProvider, diff --git a/packages/opentelemetry-sdk-trace-node/test/registration.test.ts b/packages/opentelemetry-sdk-trace-node/test/registration.test.ts index 1479cbadbbc..2b1466b1791 100644 --- a/packages/opentelemetry-sdk-trace-node/test/registration.test.ts +++ b/packages/opentelemetry-sdk-trace-node/test/registration.test.ts @@ -23,9 +23,7 @@ import { trace, ProxyTracerProvider, } from '@opentelemetry/api'; -import { - AsyncLocalStorageContextManager, -} from '@opentelemetry/context-async-hooks'; +import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks'; import { CompositePropagator } from '@opentelemetry/core'; import { NodeTracerProvider } from '../src'; @@ -47,7 +45,10 @@ describe('API registration', () => { const tracerProvider = new NodeTracerProvider(); tracerProvider.register(); - assertInstanceOf(context['_getContextManager'](), AsyncLocalStorageContextManager); + assertInstanceOf( + context['_getContextManager'](), + AsyncLocalStorageContextManager + ); assertInstanceOf( propagation['_getGlobalPropagator'](), CompositePropagator @@ -107,7 +108,10 @@ describe('API registration', () => { assert.strictEqual(propagation['_getGlobalPropagator'](), propagator); - assertInstanceOf(context['_getContextManager'](), AsyncLocalStorageContextManager); + assertInstanceOf( + context['_getContextManager'](), + AsyncLocalStorageContextManager + ); const apiTracerProvider = trace.getTracerProvider() as ProxyTracerProvider; assert.ok(apiTracerProvider.getDelegate() === tracerProvider);