Skip to content

Commit 5b67c4f

Browse files
authored
chore(resource-detector-aws): update semconv usage to modern exports (#3073)
1 parent 652277f commit 5b67c4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/resource-detector-aws/test/detectors/AwsBeanstalkDetector.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
assertServiceResource,
2222
} from '@opentelemetry/contrib-test-utils';
2323
import { detectResources } from '@opentelemetry/resources';
24-
import { CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK } from '@opentelemetry/semantic-conventions';
24+
import { CLOUD_PLATFORM_VALUE_AWS_ELASTIC_BEANSTALK } from '../../src/semconv';
2525
import { awsBeanstalkDetector } from '../../src';
2626
import { AwsBeanstalkDetector } from '../../src/detectors/AwsBeanstalkDetector';
2727

@@ -61,7 +61,7 @@ describe('BeanstalkResourceDetector', () => {
6161
sinon.assert.calledOnce(readStub);
6262
assert.ok(resource);
6363
assertServiceResource(resource, {
64-
name: CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,
64+
name: CLOUD_PLATFORM_VALUE_AWS_ELASTIC_BEANSTALK,
6565
namespace: 'scorekeep',
6666
version: 'app-5a56-170119_190650-stage-170119_190650',
6767
instanceId: '32',
@@ -84,7 +84,7 @@ describe('BeanstalkResourceDetector', () => {
8484
sinon.assert.calledOnce(readStub);
8585
assert.ok(resource);
8686
assertServiceResource(resource, {
87-
name: CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,
87+
name: CLOUD_PLATFORM_VALUE_AWS_ELASTIC_BEANSTALK,
8888
namespace: 'scorekeep',
8989
version: 'app-5a56-170119_190650-stage-170119_190650',
9090
instanceId: '32',

0 commit comments

Comments
 (0)