Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
david-luna committed Oct 13, 2023
1 parent cf7222b commit 917c848
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export type V4Connection = {

// https://github.com/mongodb/node-mongodb-native/blob/v4.2.2/src/cmap/connection_pool.ts
export type V4ConnectionPool = {
// Instrumentation jsut cares about carrying the async context so
// Instrumentation just cares about carrying the async context so
// types of callback params are not needed
checkOut: (callback: (error: any, connection: any) => void) => void;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ describe('MongoDBInstrumentation-Tracing-v4', () => {
const tasks = queries.map((query, idx) => {
return new Promise((resolve, reject) => {
process.nextTick(() => {
const span = trace.getTracer('default').startSpan(`findRootSpan ${idx}`);
const span = trace
.getTracer('default')
.startSpan(`findRootSpan ${idx}`);
context.with(trace.setSpan(context.active(), span), () => {
collection
.find(query)
Expand All @@ -266,12 +268,12 @@ describe('MongoDBInstrumentation-Tracing-v4', () => {
const rootId = root.spanContext().spanId;
const children = spans.filter(s => s.parentSpanId === rootId);
assert.strictEqual(children.length, 1);
})
});
done();
})
.catch(err => {
done(err);
})
});
});
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ describe('MongoDBInstrumentation-Tracing-v5', () => {
const tasks = queries.map((query, idx) => {
return new Promise((resolve, reject) => {
process.nextTick(() => {
const span = trace.getTracer('default').startSpan(`findRootSpan ${idx}`);
const span = trace
.getTracer('default')
.startSpan(`findRootSpan ${idx}`);
context.with(trace.setSpan(context.active(), span), () => {
collection
.find(query)
Expand All @@ -272,12 +274,12 @@ describe('MongoDBInstrumentation-Tracing-v5', () => {
const rootId = root.spanContext().spanId;
const children = spans.filter(s => s.parentSpanId === rootId);
assert.strictEqual(children.length, 1);
})
});
done();
})
.catch(err => {
done(err);
})
});
});
});

Expand Down

0 comments on commit 917c848

Please sign in to comment.