Skip to content

Commit

Permalink
semantic-conventions: update to v1.9 spec (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtescher committed Mar 12, 2022
1 parent 75fc04b commit a451eb3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ 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=v1.8.0
SEMCOVGEN_VERSION=0.8.0
SPEC_VERSION=v1.9.0
SEMCOVGEN_VERSION=0.11.0

cd "$CRATE_DIR"

Expand Down
10 changes: 10 additions & 0 deletions opentelemetry-semantic-conventions/src/resource.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,16 @@ pub const DEVICE_MODEL_IDENTIFIER: Key = Key::from_static_str("device.model.iden
/// - `Samsung Galaxy S6`
pub const DEVICE_MODEL_NAME: Key = Key::from_static_str("device.model.name");

/// The name of the device manufacturer.
///
/// The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#MANUFACTURER). iOS apps SHOULD hardcode the value `Apple`.
///
/// # Examples
///
/// - `Apple`
/// - `Samsung`
pub const DEVICE_MANUFACTURER: Key = Key::from_static_str("device.manufacturer");

/// The name of the single function that this runtime instance executes.
///
/// 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).
Expand Down
5 changes: 5 additions & 0 deletions opentelemetry-semantic-conventions/src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ use opentelemetry::Key;
/// - `arn:aws:lambda:us-east-1:123456:function:myfunction:myalias`
pub const AWS_LAMBDA_INVOKED_ARN: Key = Key::from_static_str("aws.lambda.invoked_arn");

/// Parent-child Reference type.
///
/// The causal relationship between a child Span and a parent Span.
pub const OPENTRACING_REF_TYPE: Key = Key::from_static_str("opentracing.ref_type");

/// An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers.
pub const DB_SYSTEM: Key = Key::from_static_str("db.system");

Expand Down

0 comments on commit a451eb3

Please sign in to comment.