Skip to content

Commit 096454f

Browse files
authored
[SEMANTIC CONVENTIONS] Upgrade to semantic conventions 1.37.0 (open-telemetry#3615)
1 parent e79967b commit 096454f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3220
-1010
lines changed

api/include/opentelemetry/semconv/incubating/app_attributes.h

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ namespace semconv
1919
namespace app
2020
{
2121

22+
/**
23+
Unique identifier for a particular build or compilation of the application.
24+
*/
25+
static constexpr const char *kAppBuildId = "app.build_id";
26+
2227
/**
2328
A unique identifier representing the installation of an application on a specific device
2429
<p>
@@ -42,11 +47,29 @@ namespace app
4247
Settings.getString(Settings.Secure.ANDROID_ID) @endcode</a>.</li>
4348
</ul>
4449
<p>
45-
More information about Android identifier best practices can be found <a
46-
href="https://developer.android.com/training/articles/user-data-ids">here</a>.
50+
More information about Android identifier best practices can be found in the <a
51+
href="https://developer.android.com/training/articles/user-data-ids">Android user data IDs
52+
guide</a>.
4753
*/
4854
static constexpr const char *kAppInstallationId = "app.installation.id";
4955

56+
/**
57+
A number of frame renders that experienced jank.
58+
<p>
59+
Depending on platform limitations, the value provided MAY be approximation.
60+
*/
61+
static constexpr const char *kAppJankFrameCount = "app.jank.frame_count";
62+
63+
/**
64+
The time period, in seconds, for which this jank is being reported.
65+
*/
66+
static constexpr const char *kAppJankPeriod = "app.jank.period";
67+
68+
/**
69+
The minimum rendering threshold for this jank, in seconds.
70+
*/
71+
static constexpr const char *kAppJankThreshold = "app.jank.threshold";
72+
5073
/**
5174
The x (horizontal) coordinate of a screen coordinate, in screen pixels.
5275
*/

api/include/opentelemetry/semconv/incubating/aws_attributes.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,12 +409,12 @@ static constexpr const char *kAwsStepFunctionsStateMachineArn =
409409
namespace AwsEcsLaunchtypeValues
410410
{
411411
/**
412-
none
412+
Amazon EC2
413413
*/
414414
static constexpr const char *kEc2 = "ec2";
415415

416416
/**
417-
none
417+
Amazon Fargate
418418
*/
419419
static constexpr const char *kFargate = "fargate";
420420

api/include/opentelemetry/semconv/incubating/azure_attributes.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,27 @@ static constexpr const char *kDirect = "direct";
9292
namespace AzureCosmosdbConsistencyLevelValues
9393
{
9494
/**
95-
none
95+
Strong
9696
*/
9797
static constexpr const char *kStrong = "Strong";
9898

9999
/**
100-
none
100+
Bounded Staleness
101101
*/
102102
static constexpr const char *kBoundedStaleness = "BoundedStaleness";
103103

104104
/**
105-
none
105+
Session
106106
*/
107107
static constexpr const char *kSession = "Session";
108108

109109
/**
110-
none
110+
Eventual
111111
*/
112112
static constexpr const char *kEventual = "Eventual";
113113

114114
/**
115-
none
115+
Consistent Prefix
116116
*/
117117
static constexpr const char *kConsistentPrefix = "ConsistentPrefix";
118118

api/include/opentelemetry/semconv/incubating/azure_metrics.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ namespace azure
2121
{
2222

2323
/**
24-
Number of active client instances
24+
Number of active client instances.
2525
<p>
2626
updowncounter
2727
*/
2828
static constexpr const char *kMetricAzureCosmosdbClientActiveInstanceCount =
2929
"azure.cosmosdb.client.active_instance.count";
3030
static constexpr const char *descrMetricAzureCosmosdbClientActiveInstanceCount =
31-
"Number of active client instances";
31+
"Number of active client instances.";
3232
static constexpr const char *unitMetricAzureCosmosdbClientActiveInstanceCount = "{instance}";
3333

3434
static inline nostd::unique_ptr<metrics::UpDownCounter<int64_t>>
@@ -67,13 +67,13 @@ CreateAsyncDoubleMetricAzureCosmosdbClientActiveInstanceCount(metrics::Meter *me
6767

6868
/**
6969
<a href="https://learn.microsoft.com/azure/cosmos-db/request-units">Request units</a> consumed by
70-
the operation <p> histogram
70+
the operation. <p> histogram
7171
*/
7272
static constexpr const char *kMetricAzureCosmosdbClientOperationRequestCharge =
7373
"azure.cosmosdb.client.operation.request_charge";
7474
static constexpr const char *descrMetricAzureCosmosdbClientOperationRequestCharge =
7575
"[Request units](https://learn.microsoft.com/azure/cosmos-db/request-units) consumed by the "
76-
"operation";
76+
"operation.";
7777
static constexpr const char *unitMetricAzureCosmosdbClientOperationRequestCharge = "{request_unit}";
7878

7979
static inline nostd::unique_ptr<metrics::Histogram<uint64_t>>

api/include/opentelemetry/semconv/incubating/cassandra_attributes.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,57 +55,57 @@ static constexpr const char *kCassandraSpeculativeExecutionCount =
5555
namespace CassandraConsistencyLevelValues
5656
{
5757
/**
58-
none
58+
All
5959
*/
6060
static constexpr const char *kAll = "all";
6161

6262
/**
63-
none
63+
Each Quorum
6464
*/
6565
static constexpr const char *kEachQuorum = "each_quorum";
6666

6767
/**
68-
none
68+
Quorum
6969
*/
7070
static constexpr const char *kQuorum = "quorum";
7171

7272
/**
73-
none
73+
Local Quorum
7474
*/
7575
static constexpr const char *kLocalQuorum = "local_quorum";
7676

7777
/**
78-
none
78+
One
7979
*/
8080
static constexpr const char *kOne = "one";
8181

8282
/**
83-
none
83+
Two
8484
*/
8585
static constexpr const char *kTwo = "two";
8686

8787
/**
88-
none
88+
Three
8989
*/
9090
static constexpr const char *kThree = "three";
9191

9292
/**
93-
none
93+
Local One
9494
*/
9595
static constexpr const char *kLocalOne = "local_one";
9696

9797
/**
98-
none
98+
Any
9999
*/
100100
static constexpr const char *kAny = "any";
101101

102102
/**
103-
none
103+
Serial
104104
*/
105105
static constexpr const char *kSerial = "serial";
106106

107107
/**
108-
none
108+
Local Serial
109109
*/
110110
static constexpr const char *kLocalSerial = "local_serial";
111111

api/include/opentelemetry/semconv/incubating/container_attributes.h

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,28 @@ static constexpr const char *kContainerName = "container.name";
130130

131131
/**
132132
The container runtime managing this container.
133+
134+
@deprecated
135+
{"note": "Replaced by @code container.runtime.name @endcode.", "reason": "renamed", "renamed_to":
136+
"container.runtime.name"}
137+
*/
138+
OPENTELEMETRY_DEPRECATED static constexpr const char *kContainerRuntime = "container.runtime";
139+
140+
/**
141+
A description about the runtime which could include, for example details about the CRI/API version
142+
being used or other customisations.
143+
*/
144+
static constexpr const char *kContainerRuntimeDescription = "container.runtime.description";
145+
146+
/**
147+
The container runtime managing this container.
148+
*/
149+
static constexpr const char *kContainerRuntimeName = "container.runtime.name";
150+
151+
/**
152+
The version of the runtime of this process, as returned by the runtime without modification.
133153
*/
134-
static constexpr const char *kContainerRuntime = "container.runtime";
154+
static constexpr const char *kContainerRuntimeVersion = "container.runtime.version";
135155

136156
namespace ContainerCpuStateValues
137157
{

0 commit comments

Comments
 (0)