[SEMANTIC CONVENTIONS] Upgrade to version 1.26.0 (#1851)

This commit is contained in:
Lalit Kumar Bhasin 2024-05-31 12:13:29 -07:00 committed by GitHub
parent 82fa485359
commit 300f8e5fca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 2175 additions and 1025 deletions

View File

@ -5,7 +5,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CRATE_DIR="${SCRIPT_DIR}/../"
# freeze the spec version and generator version to make generation reproducible
SPEC_VERSION=1.25.0
SPEC_VERSION=1.26.0
SEMCOVGEN_VERSION=0.24.0
cd "$CRATE_DIR"
@ -53,4 +53,14 @@ fi
# handle doc generation failures
"${SED[@]}" 's/\[2\]\.$//' src/resource.rs src/trace.rs # remove trailing [2] from few of the doc comments
# Remove the messaging.client_id definition along with its comments from the generated files
# - semconv "messaging.client_id" is deprecated
# - semconv "messaging.client.id" is to be used instead
# - Now because we use:
# pub const {{attribute.fqn | to_const_name}}: &str = "{{attribute.fqn}}";
# to generate the consts, where to_const_name replaces '.' with '_', we need to remove the old definition
# to avoid conflicts with the new one. Refer - https://github.com/open-telemetry/semantic-conventions/issues/1031
"${SED[@]}" '/\/\/\/ Deprecated, use `messaging.client.id` instead\./{N;N;N;N;d;}' src/trace.rs src/resource.rs
"${SED[@]}" '/pub const MESSAGING_CLIENT_ID: &str = "messaging.client_id";/{N;d;}' src/trace.rs src/resource.rs
cargo fmt

View File

@ -20,4 +20,4 @@ pub mod trace;
/// The schema URL that matches the version of the semantic conventions that
/// this crate defines.
pub const SCHEMA_URL: &str = "https://opentelemetry.io/schemas/1.25.0";
pub const SCHEMA_URL: &str = "https://opentelemetry.io/schemas/1.26.0";

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff