Skip to content

Commit 0779fc3

Browse files
committed
fixed import errors, renamed sigv4 exporter folder
1 parent 5a12d6f commit 0779fc3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

aws-distro-opentelemetry-node-autoinstrumentation/src/aws-opentelemetry-configurator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ import { AttributePropagatingSpanProcessorBuilder } from './attribute-propagatin
5656
import { AwsBatchUnsampledSpanProcessor } from './aws-batch-unsampled-span-processor';
5757
import { AwsMetricAttributesSpanExporterBuilder } from './aws-metric-attributes-span-exporter-builder';
5858
import { AwsSpanMetricsProcessorBuilder } from './aws-span-metrics-processor-builder';
59-
import { OTLPAwsSpanExporter } from './exporter/otlp-aws-span-exporter';
59+
import { OTLPAwsSpanExporter } from './aws-span-exporter/otlp-aws-span-exporter';
6060
import { OTLPUdpSpanExporter } from './otlp-udp-exporter';
6161
import { AwsXRayRemoteSampler } from './sampler/aws-xray-remote-sampler';
6262
// This file is generated via `npm run compile`

aws-distro-opentelemetry-node-autoinstrumentation/test/otlp-aws-span-exporter.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
import expect from 'expect';
44
import * as sinon from 'sinon';
5-
import { OTLPAwsSpanExporter } from '../src/exporter/otlp-aws-span-exporter';
5+
import { OTLPAwsSpanExporter } from '../src/aws-span-exporter/otlp-aws-span-exporter';
66
import * as proxyquire from 'proxyquire';
77
import * as nock from 'nock';
88
import { getNodeVersion } from '../src/utils';
@@ -36,7 +36,7 @@ if (nodeVersion >= 16) {
3636
return [200, ''];
3737
});
3838

39-
mockModule = proxyquire('../src/exporter/otlp-aws-span-exporter', {
39+
mockModule = proxyquire('../src/aws-span-exporter/otlp-aws-span-exporter', {
4040
'@smithy/signature-v4': {
4141
SignatureV4: class MockSignatureV4 {
4242
sign(req: any) {
@@ -127,7 +127,7 @@ if (nodeVersion >= 16) {
127127
});
128128

129129
it('should not inject SigV4 headers if failure to sign headers', done => {
130-
const stubbedModule = proxyquire('../src/otlp-aws-span-exporter', {
130+
const stubbedModule = proxyquire('../src/aws-span-exporter/otlp-aws-span-exporter', {
131131
'@smithy/signature-v4': {
132132
SignatureV4: class MockSignatureV4 {
133133
sign() {
@@ -156,7 +156,7 @@ if (nodeVersion >= 16) {
156156
});
157157

158158
it('should not inject SigV4 headers if failure to retrieve credentials', done => {
159-
const stubbedModule = proxyquire('../src/otlp-aws-span-exporter', {
159+
const stubbedModule = proxyquire('../src/aws-span-exporter/otlp-aws-span-exporter', {
160160
'@aws-sdk/credential-provider-node': {
161161
defaultProvider: () => async () => {
162162
throw new Error('credentials error');

0 commit comments

Comments
 (0)