Skip to content

Commit a3b7738

Browse files
weyerttapico-weyertdyladanvmarchaud
authored
feat(semantic-conventions): upgrade semantic conventions to version 1… (#2268)
* feat(semantic-conventions): upgrade semantic conventions to version 1.4.0 spec Ran the generator to generate the semantic and resource atributes based on the v1.4.0 opentelemetry specification. * fix: ensure the string as single quoted * style: convert double to single quote Co-authored-by: Weyert de Boer <[email protected]> Co-authored-by: Daniel Dyla <[email protected]> Co-authored-by: Valentin Marchaud <[email protected]>
1 parent 5b6573e commit a3b7738

File tree

6 files changed

+596
-491
lines changed

6 files changed

+596
-491
lines changed

packages/opentelemetry-resource-detector-aws/src/detectors/AwsBeanstalkDetector.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ export class AwsBeanstalkDetector implements Detector {
7171
return new Resource({
7272
[ResourceAttributes.CLOUD_PROVIDER]: CloudProviderValues.AWS,
7373
[ResourceAttributes.CLOUD_PLATFORM]:
74-
CloudPlatformValues.AWS_ELASTICBEANSTALK,
74+
CloudPlatformValues.AWS_ELASTIC_BEANSTALK,
7575
[ResourceAttributes.SERVICE_NAME]:
76-
CloudPlatformValues.AWS_ELASTICBEANSTALK,
76+
CloudPlatformValues.AWS_ELASTIC_BEANSTALK,
7777
[ResourceAttributes.SERVICE_NAMESPACE]: parsedData.environment_name,
7878
[ResourceAttributes.SERVICE_VERSION]: parsedData.version_label,
7979
[ResourceAttributes.SERVICE_INSTANCE_ID]: parsedData.deployment_id,

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe('BeanstalkResourceDetector', () => {
5858
sinon.assert.calledOnce(readStub);
5959
assert.ok(resource);
6060
assertServiceResource(resource, {
61-
name: CloudPlatformValues.AWS_ELASTICBEANSTALK,
61+
name: CloudPlatformValues.AWS_ELASTIC_BEANSTALK,
6262
namespace: 'scorekeep',
6363
version: 'app-5a56-170119_190650-stage-170119_190650',
6464
instanceId: '32',
@@ -80,7 +80,7 @@ describe('BeanstalkResourceDetector', () => {
8080
sinon.assert.calledOnce(readStub);
8181
assert.ok(resource);
8282
assertServiceResource(resource, {
83-
name: CloudPlatformValues.AWS_ELASTICBEANSTALK,
83+
name: CloudPlatformValues.AWS_ELASTIC_BEANSTALK,
8484
namespace: 'scorekeep',
8585
version: 'app-5a56-170119_190650-stage-170119_190650',
8686
instanceId: '32',

0 commit comments

Comments
 (0)