Skip to content

Commit 5887173

Browse files
authored
add deployment attributes to semconv (open-telemetry#1700)
1 parent 036f7ad commit 5887173

File tree

3 files changed

+71
-1
lines changed

3 files changed

+71
-1
lines changed

script/semantic-conventions/templates/registry/php/weaver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ params:
77
geo, go, graphql, heroku, ios, k8s, linux, mainframe, message,
88
oci, openai, opentracing, other, pool, rpc, security_rule, source, system, test,
99
useragent, v8js, vcs, webengine, zos, az, session, thread, destination,
10-
cicd, cloud, cloudevents, cpu, cpython, deployment, aspnetcore,
10+
cicd, cloud, cloudevents, cpu, cpython, aspnetcore,
1111
cloudfoundry, dotnet, hw, jvm, nodejs, profile, signalr
1212
]
1313
excluded_metrics_namespaces: [
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
<?php
2+
3+
// DO NOT EDIT, this is an Auto-generated file from script/semantic-conventions
4+
5+
declare(strict_types=1);
6+
7+
namespace OpenTelemetry\SemConv\Incubating\Attributes;
8+
9+
/**
10+
* Semantic attributes and corresponding values for deployment.
11+
* @see https://opentelemetry.io/docs/specs/semconv/registry/attributes/deployment/
12+
* May contain @experimental Semantic Conventions which may change or be removed in the future.
13+
*/
14+
interface DeploymentIncubatingAttributes
15+
{
16+
/**
17+
* Name of the [deployment environment](https://wikipedia.org/wiki/Deployment_environment) (aka deployment tier).
18+
*
19+
* `deployment.environment.name` does not affect the uniqueness constraints defined through
20+
* the `service.namespace`, `service.name` and `service.instance.id` resource attributes.
21+
* This implies that resources carrying the following attribute combinations MUST be
22+
* considered to be identifying the same service:
23+
*
24+
* - `service.name=frontend`, `deployment.environment.name=production`
25+
* - `service.name=frontend`, `deployment.environment.name=staging`.
26+
*
27+
* @experimental
28+
*/
29+
public const DEPLOYMENT_ENVIRONMENT_NAME = 'deployment.environment.name';
30+
31+
/**
32+
* The id of the deployment.
33+
*
34+
* @experimental
35+
*/
36+
public const DEPLOYMENT_ID = 'deployment.id';
37+
38+
/**
39+
* The name of the deployment.
40+
*
41+
* @experimental
42+
*/
43+
public const DEPLOYMENT_NAME = 'deployment.name';
44+
45+
/**
46+
* The status of the deployment.
47+
*
48+
* @experimental
49+
*/
50+
public const DEPLOYMENT_STATUS = 'deployment.status';
51+
52+
/**
53+
* failed
54+
* @experimental
55+
*/
56+
public const DEPLOYMENT_STATUS_VALUE_FAILED = 'failed';
57+
58+
/**
59+
* succeeded
60+
* @experimental
61+
*/
62+
public const DEPLOYMENT_STATUS_VALUE_SUCCEEDED = 'succeeded';
63+
64+
}

src/SemConv/Incubating/Attributes/MessagingIncubatingAttributes.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,12 @@ interface MessagingIncubatingAttributes
390390
*/
391391
public const MESSAGING_SYSTEM_VALUE_ACTIVEMQ = 'activemq';
392392

393+
/**
394+
* Amazon Simple Notification Service (SNS)
395+
* @experimental
396+
*/
397+
public const MESSAGING_SYSTEM_VALUE_AWS_SNS = 'aws.sns';
398+
393399
/**
394400
* Amazon Simple Queue Service (SQS)
395401
* @experimental

0 commit comments

Comments
 (0)