Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Dec 13, 2023
1 parent 51869b9 commit 1905d58
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<unknown>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 1 addition & 3 deletions experimental/packages/shim-opencensus/test/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
14 changes: 9 additions & 5 deletions packages/opentelemetry-sdk-trace-node/test/registration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 1905d58

Please sign in to comment.