diff --git a/experimental/packages/otlp-proto-exporter-base/src/platform/node/OTLPProtoExporterNodeBase.ts b/experimental/packages/otlp-proto-exporter-base/src/platform/node/OTLPProtoExporterNodeBase.ts index c0ff4b6b39..0bbc3ecbc0 100644 --- a/experimental/packages/otlp-proto-exporter-base/src/platform/node/OTLPProtoExporterNodeBase.ts +++ b/experimental/packages/otlp-proto-exporter-base/src/platform/node/OTLPProtoExporterNodeBase.ts @@ -22,6 +22,7 @@ import { OTLPExporterError, OTLPExporterNodeConfigBase, } from '@opentelemetry/otlp-exporter-base'; +import { send } from './util'; type SendFn = ( collector: OTLPProtoExporterNodeBase, @@ -74,8 +75,6 @@ export abstract class OTLPProtoExporterNodeBase< // defer to next tick and lazy load to avoid loading protobufjs too early // and making this impossible to be instrumented setImmediate(() => { - // eslint-disable-next-line @typescript-eslint/no-var-requires - const { send } = require('./util'); this._send = send; this._sendPromise(objects, onSuccess, onError); });