Skip to content

Commit a451eb3

Browse files
authored
semantic-conventions: update to v1.9 spec (open-telemetry#754)
1 parent 75fc04b commit a451eb3

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
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=v1.8.0
9-
SEMCOVGEN_VERSION=0.8.0
8+
SPEC_VERSION=v1.9.0
9+
SEMCOVGEN_VERSION=0.11.0
1010

1111
cd "$CRATE_DIR"
1212

opentelemetry-semantic-conventions/src/resource.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ pub const DEVICE_MODEL_IDENTIFIER: Key = Key::from_static_str("device.model.iden
217217
/// - `Samsung Galaxy S6`
218218
pub const DEVICE_MODEL_NAME: Key = Key::from_static_str("device.model.name");
219219

220+
/// The name of the device manufacturer.
221+
///
222+
/// The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps SHOULD hardcode the value `Apple`.
223+
///
224+
/// # Examples
225+
///
226+
/// - `Apple`
227+
/// - `Samsung`
228+
pub const DEVICE_MANUFACTURER: Key = Key::from_static_str("device.manufacturer");
229+
220230
/// The name of the single function that this runtime instance executes.
221231
///
222232
/// This is the name of the function as configured/deployed on the FaaS platform and is usually different from the name of the callback function (which may be stored in the [`code.namespace`/`code.function`](../../trace/semantic_conventions/span-general.md#source-code-attributes) span attributes).

opentelemetry-semantic-conventions/src/trace.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ use opentelemetry::Key;
3838
/// - `arn:aws:lambda:us-east-1:123456:function:myfunction:myalias`
3939
pub const AWS_LAMBDA_INVOKED_ARN: Key = Key::from_static_str("aws.lambda.invoked_arn");
4040

41+
/// Parent-child Reference type.
42+
///
43+
/// The causal relationship between a child Span and a parent Span.
44+
pub const OPENTRACING_REF_TYPE: Key = Key::from_static_str("opentracing.ref_type");
45+
4146
/// An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers.
4247
pub const DB_SYSTEM: Key = Key::from_static_str("db.system");
4348

0 commit comments

Comments
 (0)