Skip to content

Commit ebbecd9

Browse files
committed
initial commit
1 parent 10cf02c commit ebbecd9

File tree

9 files changed

+715
-22
lines changed

9 files changed

+715
-22
lines changed

opentelemetry-semantic-conventions/scripts/generate-consts-from-spec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
55
CRATE_DIR="${SCRIPT_DIR}/../"
66

77
# freeze the spec version and generator version to make generation reproducible
8-
SPEC_VERSION=1.31.0
9-
WEAVER_VERSION=v0.13.0
8+
SPEC_VERSION=1.32.0
9+
WEAVER_VERSION=v0.13.2
1010

1111
cd "$CRATE_DIR"
1212

opentelemetry-semantic-conventions/scripts/templates/registry/rust/attribute.rs.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#[cfg(feature = "semconv_experimental")]
1919
{% endif %}
2020
{% if attr is deprecated %}
21-
#[deprecated(note="{{ attr.deprecated.strip(" \n\"") }}")]
21+
#[deprecated(note="{{ attr.deprecated | replace('\n', ' ') | replace('"', '') | trim }}")]
2222
{% endif %}
2323
pub const {{ attr.name | screaming_snake_case }}: &str = "{{ attr.name }}";
2424

opentelemetry-semantic-conventions/scripts/templates/registry/rust/metric.rs.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
#[cfg(feature = "semconv_experimental")]
7272
{% endif %}
7373
{% if metric is deprecated %}
74-
#[deprecated(note="{{ metric.deprecated.strip(" \n\"") }}")]
74+
#[deprecated(note="{{ metric.deprecated | replace('"', '') | replace('\n', ' ') | trim }}")]
7575
{% endif %}
7676
pub const {{ metric.metric_name | screaming_snake_case }}: &str = "{{ metric.metric_name }}";
7777

opentelemetry-semantic-conventions/scripts/templates/registry/rust/weaver.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ comment_formats:
1414
default_comment_format: rust
1515

1616
params:
17-
schema_url: "https://opentelemetry.io/schemas/1.31.0"
17+
schema_url: "https://opentelemetry.io/schemas/1.32.0"
1818
exclude_root_namespace: []
1919
excluded_attributes: ["messaging.client_id"]
2020

opentelemetry-semantic-conventions/src/attribute.rs

Lines changed: 400 additions & 10 deletions
Large diffs are not rendered by default.

opentelemetry-semantic-conventions/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ pub mod trace;
2222

2323
/// The schema URL that matches the version of the semantic conventions that
2424
/// this crate defines.
25-
pub const SCHEMA_URL: &str = "https://opentelemetry.io/schemas/1.31.0";
25+
pub const SCHEMA_URL: &str = "https://opentelemetry.io/schemas/1.32.0";

opentelemetry-semantic-conventions/src/metric.rs

Lines changed: 270 additions & 1 deletion
Large diffs are not rendered by default.

opentelemetry-semantic-conventions/src/resource.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#[cfg(feature = "semconv_experimental")]
2727
pub use crate::attribute::ANDROID_OS_API_LEVEL;
2828

29+
#[cfg(feature = "semconv_experimental")]
30+
pub use crate::attribute::APP_INSTALLATION_ID;
31+
2932
#[cfg(feature = "semconv_experimental")]
3033
pub use crate::attribute::AWS_ECS_CLUSTER_ARN;
3134

@@ -182,6 +185,33 @@ pub use crate::attribute::FAAS_NAME;
182185
#[cfg(feature = "semconv_experimental")]
183186
pub use crate::attribute::FAAS_VERSION;
184187

188+
#[cfg(feature = "semconv_experimental")]
189+
pub use crate::attribute::GCP_APPHUB_APPLICATION_CONTAINER;
190+
191+
#[cfg(feature = "semconv_experimental")]
192+
pub use crate::attribute::GCP_APPHUB_APPLICATION_ID;
193+
194+
#[cfg(feature = "semconv_experimental")]
195+
pub use crate::attribute::GCP_APPHUB_APPLICATION_LOCATION;
196+
197+
#[cfg(feature = "semconv_experimental")]
198+
pub use crate::attribute::GCP_APPHUB_SERVICE_CRITICALITY_TYPE;
199+
200+
#[cfg(feature = "semconv_experimental")]
201+
pub use crate::attribute::GCP_APPHUB_SERVICE_ENVIRONMENT_TYPE;
202+
203+
#[cfg(feature = "semconv_experimental")]
204+
pub use crate::attribute::GCP_APPHUB_SERVICE_ID;
205+
206+
#[cfg(feature = "semconv_experimental")]
207+
pub use crate::attribute::GCP_APPHUB_WORKLOAD_CRITICALITY_TYPE;
208+
209+
#[cfg(feature = "semconv_experimental")]
210+
pub use crate::attribute::GCP_APPHUB_WORKLOAD_ENVIRONMENT_TYPE;
211+
212+
#[cfg(feature = "semconv_experimental")]
213+
pub use crate::attribute::GCP_APPHUB_WORKLOAD_ID;
214+
185215
#[cfg(feature = "semconv_experimental")]
186216
pub use crate::attribute::GCP_CLOUD_RUN_JOB_EXECUTION;
187217

opentelemetry-semantic-conventions/src/trace.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ pub use crate::attribute::DB_RESPONSE_RETURNED_ROWS;
203203
#[cfg(feature = "semconv_experimental")]
204204
pub use crate::attribute::DB_RESPONSE_STATUS_CODE;
205205

206+
#[cfg(feature = "semconv_experimental")]
207+
pub use crate::attribute::DB_STORED_PROCEDURE_NAME;
208+
206209
#[cfg(feature = "semconv_experimental")]
207210
pub use crate::attribute::DB_SYSTEM_NAME;
208211

@@ -211,6 +214,7 @@ pub use crate::attribute::ELASTICSEARCH_NODE_NAME;
211214

212215
pub use crate::attribute::ERROR_TYPE;
213216

217+
#[allow(deprecated)]
214218
pub use crate::attribute::EXCEPTION_ESCAPED;
215219

216220
pub use crate::attribute::EXCEPTION_MESSAGE;
@@ -258,20 +262,20 @@ pub use crate::attribute::FEATURE_FLAG_CONTEXT_ID;
258262
#[cfg(feature = "semconv_experimental")]
259263
pub use crate::attribute::FEATURE_FLAG_EVALUATION_ERROR_MESSAGE;
260264

261-
#[cfg(feature = "semconv_experimental")]
262-
pub use crate::attribute::FEATURE_FLAG_EVALUATION_REASON;
263-
264265
#[cfg(feature = "semconv_experimental")]
265266
pub use crate::attribute::FEATURE_FLAG_KEY;
266267

267268
#[cfg(feature = "semconv_experimental")]
268269
pub use crate::attribute::FEATURE_FLAG_PROVIDER_NAME;
269270

270271
#[cfg(feature = "semconv_experimental")]
271-
pub use crate::attribute::FEATURE_FLAG_SET_ID;
272+
pub use crate::attribute::FEATURE_FLAG_RESULT_REASON;
273+
274+
#[cfg(feature = "semconv_experimental")]
275+
pub use crate::attribute::FEATURE_FLAG_RESULT_VARIANT;
272276

273277
#[cfg(feature = "semconv_experimental")]
274-
pub use crate::attribute::FEATURE_FLAG_VARIANT;
278+
pub use crate::attribute::FEATURE_FLAG_SET_ID;
275279

276280
#[cfg(feature = "semconv_experimental")]
277281
pub use crate::attribute::FEATURE_FLAG_VERSION;

0 commit comments

Comments
 (0)