Skip to content

Commit 1ad32c1

Browse files
committed
fix formatting and typo
1 parent afab580 commit 1ad32c1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

nodejs/packages/layer/src/wrapper.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ import {
4747
import { AWSXRayPropagator } from '@opentelemetry/propagator-aws-xray';
4848
import { AWSXRayLambdaPropagator } from '@opentelemetry/propagator-aws-xray-lambda';
4949

50-
const defaultInstrumentationList = [
51-
'dns',
52-
'http',
53-
'net',
54-
];
50+
const defaultInstrumentationList = ['dns', 'http', 'net'];
5551

5652
const propagatorMap = new Map<string, () => TextMapPropagator>([
5753
['tracecontext', () => new W3CTraceContextPropagator()],
@@ -93,7 +89,7 @@ declare global {
9389
function configureLoggerProvider(loggerProvider: unknown): void;
9490
}
9591

96-
function getActiveInstumentations(): Set<string> {
92+
function getActiveInstrumentations(): Set<string> {
9793
let enabledInstrumentations: string[] = defaultInstrumentationList;
9894
if (process.env.OTEL_NODE_ENABLED_INSTRUMENTATIONS) {
9995
enabledInstrumentations =
@@ -114,7 +110,7 @@ function getActiveInstumentations(): Set<string> {
114110

115111
async function defaultConfigureInstrumentations() {
116112
const instrumentations = [];
117-
const activeInstrumentations = getActiveInstumentations();
113+
const activeInstrumentations = getActiveInstrumentations();
118114
if (activeInstrumentations.has('amqplib')) {
119115
const { AmqplibInstrumentation } = await import(
120116
'@opentelemetry/instrumentation-amqplib'

0 commit comments

Comments
 (0)