Skip to content

Commit

Permalink
Update SemConv (#581)
Browse files Browse the repository at this point in the history
  • Loading branch information
tidal authored Feb 16, 2022
1 parent e0f012f commit 3a7f7f7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 5 deletions.
2 changes: 1 addition & 1 deletion script/semantic-conventions/semconv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR="${SCRIPT_DIR}/../../"

# freeze the spec & generator tools versions to make SemanticAttributes generation reproducible
SEMCONV_VERSION=${SEMCONV_VERSION:=1.8.0}
SEMCONV_VERSION=${SEMCONV_VERSION:=1.9.0}
SPEC_VERSION=v$SEMCONV_VERSION
SCHEMA_URL=https://opentelemetry.io/schemas/$SEMCONV_VERSION
GENERATOR_VERSION=0.8.0
Expand Down
2 changes: 1 addition & 1 deletion src/SemConv/ResourceAttributeValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ResourceAttributeValues
/**
* The URL of the OpenTelemetry schema for these keys and values.
*/
public const SCHEMA_URL = 'https://opentelemetry.io/schemas/1.8.0';
public const SCHEMA_URL = 'https://opentelemetry.io/schemas/1.9.0';
/**
* @see ResourceAttributes::CLOUD_PROVIDER Alibaba Cloud
*/
Expand Down
12 changes: 11 additions & 1 deletion src/SemConv/ResourceAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ResourceAttributes
/**
* The URL of the OpenTelemetry schema for these keys and values.
*/
public const SCHEMA_URL = 'https://opentelemetry.io/schemas/1.8.0';
public const SCHEMA_URL = 'https://opentelemetry.io/schemas/1.9.0';

/**
* Name of the cloud provider.
Expand Down Expand Up @@ -209,6 +209,16 @@ class ResourceAttributes
*/
public const DEVICE_MODEL_NAME = 'device.model.name';

/**
* The name of the device manufacturer.
*
* The Android OS provides this field via Build. iOS apps SHOULD hardcode the value `Apple`.
*
* @example Apple
* @example Samsung
*/
public const DEVICE_MANUFACTURER = 'device.manufacturer';

/**
* The name of the single function that this runtime instance executes.
*
Expand Down
12 changes: 11 additions & 1 deletion src/SemConv/TraceAttributeValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ class TraceAttributeValues
/**
* The URL of the OpenTelemetry schema for these keys and values.
*/
public const SCHEMA_URL = 'https://opentelemetry.io/schemas/1.8.0';
public const SCHEMA_URL = 'https://opentelemetry.io/schemas/1.9.0';
/**
* @see TraceAttributes::OPENTRACING_REF_TYPE The parent Span depends on the child Span in some capacity
*/
public const OPENTRACING_REF_TYPE_CHILD_OF = 'child_of';

/**
* @see TraceAttributes::OPENTRACING_REF_TYPE The parent Span does not depend in any way on the result of the child Span
*/
public const OPENTRACING_REF_TYPE_FOLLOWS_FROM = 'follows_from';

/**
* @see TraceAttributes::DB_SYSTEM Some other SQL database. Fallback only. See notes
*/
Expand Down
9 changes: 8 additions & 1 deletion src/SemConv/TraceAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class TraceAttributes
/**
* The URL of the OpenTelemetry schema for these keys and values.
*/
public const SCHEMA_URL = 'https://opentelemetry.io/schemas/1.8.0';
public const SCHEMA_URL = 'https://opentelemetry.io/schemas/1.9.0';

/**
* The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable).
Expand All @@ -22,6 +22,13 @@ class TraceAttributes
*/
public const AWS_LAMBDA_INVOKED_ARN = 'aws.lambda.invoked_arn';

/**
* Parent-child Reference type.
*
* The causal relationship between a child Span and a parent Span.
*/
public const OPENTRACING_REF_TYPE = 'opentracing.ref_type';

/**
* An identifier for the database management system (DBMS) product being used. See below for a list of well-known identifiers.
*/
Expand Down

0 comments on commit 3a7f7f7

Please sign in to comment.