Remove prefix in yaml, add policy check to block future usages (and minor cleanups) (#1293)

Co-authored-by: Alexandra Konrad <alexandra.konrad@elastic.co>
This commit is contained in:
Liudmila Molkova 2024-08-02 00:47:32 +09:00 committed by GitHub
parent 69b07449d4
commit a3cf57fcc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
106 changed files with 542 additions and 740 deletions

View File

@ -235,4 +235,5 @@ check-policies:
otel/weaver:${WEAVER_VERSION} registry check \ otel/weaver:${WEAVER_VERSION} registry check \
--registry=/source \ --registry=/source \
--policy=/policies/registry.rego \ --policy=/policies/registry.rego \
--policy=/policies/attribute_name_collisions.rego --policy=/policies/attribute_name_collisions.rego \
--policy=/policies/yaml_schema.rego

View File

@ -6,18 +6,10 @@
# GCP # GCP
- [GCP Attributes](#gcp-attributes)
- [GCP Client Attributes](#gcp-client-attributes) - [GCP Client Attributes](#gcp-client-attributes)
- [GCP - Google Cloud Run Attributes](#gcp---google-cloud-run-attributes) - [GCP - Google Cloud Run Attributes](#gcp---google-cloud-run-attributes)
- [GCP - Google Compute Engine (GCE) Attributes](#gcp---google-compute-engine-gce-attributes) - [GCP - Google Compute Engine (GCE) Attributes](#gcp---google-compute-engine-gce-attributes)
## GCP Attributes
Attributes for Google Cloud
| Attribute | Type | Description | Examples | Stability |
| --------- | ---- | ----------- | -------- | --------- |
## GCP Client Attributes ## GCP Client Attributes
Attributes for Google Cloud client libraries. Attributes for Google Cloud client libraries.

View File

@ -2,7 +2,6 @@ groups:
- id: attributes.faas.common - id: attributes.faas.common
type: attribute_group type: attribute_group
brief: "Describes FaaS attributes." brief: "Describes FaaS attributes."
prefix: faas
attributes: attributes:
- ref: faas.trigger - ref: faas.trigger
- ref: faas.invoked_name - ref: faas.invoked_name

View File

@ -28,7 +28,6 @@ groups:
- ref: destination.address - ref: destination.address
- ref: destination.port - ref: destination.port
- id: peer - id: peer
prefix: peer
type: span type: span
brief: "Operations that access some remote service." brief: "Operations that access some remote service."
attributes: attributes:

View File

@ -1,7 +1,6 @@
groups: groups:
- id: log-exception - id: log-exception
type: attribute_group type: attribute_group
prefix: exception
brief: > brief: >
This document defines attributes for exceptions represented using Log This document defines attributes for exceptions represented using Log
Records. Records.

View File

@ -23,7 +23,6 @@ groups:
# brief: > # brief: >
# This attribute represents the state the application has transitioned into at the occurrence of the event. # This attribute represents the state the application has transitioned into at the occurrence of the event.
# type: # type:
# allow_custom_values: false
# members: # members:
# - id: active # - id: active
# value: 'active' # value: 'active'
@ -57,7 +56,6 @@ groups:
# The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc), # The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc),
# and from which the `OS identifiers` are derived. # and from which the `OS identifiers` are derived.
# type: # type:
# allow_custom_values: false
# members: # members:
# - id: created # - id: created
# value: 'created' # value: 'created'

View File

@ -2,7 +2,6 @@ groups:
- id: attributes.messaging.common.minimal - id: attributes.messaging.common.minimal
type: attribute_group type: attribute_group
brief: "Common cross-signal messaging attributes." brief: "Common cross-signal messaging attributes."
prefix: messaging
attributes: attributes:
# TODO: Not adding `messaging.system` to the minimal because of https://github.com/open-telemetry/build-tools/issues/192 # TODO: Not adding `messaging.system` to the minimal because of https://github.com/open-telemetry/build-tools/issues/192
- ref: error.type - ref: error.type

View File

@ -6,7 +6,6 @@ groups:
note: > note: >
Computed from `(/memory/classes/total:bytes - /memory/classes/heap/released:bytes)`. Computed from `(/memory/classes/total:bytes - /memory/classes/heap/released:bytes)`.
instrument: updowncounter instrument: updowncounter
prefix: go.memory
unit: "By" unit: "By"
attributes: attributes:
- ref: go.memory.type - ref: go.memory.type

View File

@ -37,7 +37,6 @@ groups:
- id: attributes.jvm.buffer - id: attributes.jvm.buffer
type: attribute_group type: attribute_group
brief: "Describes JVM buffer metric attributes." brief: "Describes JVM buffer metric attributes."
prefix: jvm.buffer
attributes: attributes:
- ref: jvm.buffer.pool.name - ref: jvm.buffer.pool.name
requirement_level: recommended requirement_level: recommended

View File

@ -2,7 +2,6 @@ groups:
- id: attributes.jvm.memory - id: attributes.jvm.memory
type: attribute_group type: attribute_group
brief: "Describes JVM memory metric attributes." brief: "Describes JVM memory metric attributes."
prefix: jvm.memory
attributes: attributes:
- ref: jvm.memory.type - ref: jvm.memory.type
requirement_level: recommended requirement_level: recommended
@ -52,7 +51,6 @@ groups:
brief: "Duration of JVM garbage collection actions." brief: "Duration of JVM garbage collection actions."
instrument: histogram instrument: histogram
unit: "s" unit: "s"
prefix: jvm.gc
attributes: attributes:
- ref: jvm.gc.name - ref: jvm.gc.name
requirement_level: recommended requirement_level: recommended

View File

@ -51,7 +51,6 @@ groups:
type: metric type: metric
metric_name: process.disk.io metric_name: process.disk.io
stability: experimental stability: experimental
prefix: process.disk
brief: "Disk bytes transferred." brief: "Disk bytes transferred."
instrument: counter instrument: counter
unit: "By" unit: "By"

View File

@ -6,7 +6,6 @@ groups:
instrument: histogram instrument: histogram
unit: "s" unit: "s"
stability: experimental stability: experimental
prefix: v8js.gc
attributes: attributes:
- ref: v8js.gc.type - ref: v8js.gc.type
requirement_level: required requirement_level: required
@ -61,7 +60,6 @@ groups:
instrument: updowncounter instrument: updowncounter
unit: "By" unit: "By"
stability: experimental stability: experimental
prefix: v8js.heap.space.physical_size
attributes: attributes:
- ref: v8js.heap.space.name - ref: v8js.heap.space.name
requirement_level: required requirement_level: required

View File

@ -1,6 +1,5 @@
groups: groups:
- id: network-core - id: network-core
prefix: network
type: attribute_group type: attribute_group
brief: > brief: >
These attributes may be used for any network related operation. These attributes may be used for any network related operation.
@ -15,7 +14,6 @@ groups:
- ref: network.local.port - ref: network.local.port
- id: network-connection-and-carrier - id: network-connection-and-carrier
prefix: network
type: attribute_group type: attribute_group
brief: > brief: >
These attributes may be used for any network related operation. These attributes may be used for any network related operation.

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.android - id: registry.android
prefix: android
type: attribute_group type: attribute_group
display_name: Android Attributes display_name: Android Attributes
brief: > brief: >
The Android platform on which the Android application is running. The Android platform on which the Android application is running.
attributes: attributes:
- id: os.api_level - id: android.os.api_level
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,6 +1,5 @@
groups: groups:
- id: registry.artifact - id: registry.artifact
prefix: artifact
type: attribute_group type: attribute_group
brief: > brief: >
This group describes attributes specific to artifacts. Artifacts are This group describes attributes specific to artifacts. Artifacts are
@ -9,7 +8,7 @@ groups:
[SLSA](https://slsa.dev/spec/v1.0/terminology#package-model) package [SLSA](https://slsa.dev/spec/v1.0/terminology#package-model) package
model. model.
attributes: attributes:
- id: filename - id: artifact.filename
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -28,13 +27,13 @@ groups:
"release-1.tar.gz", "release-1.tar.gz",
"file-name-package.tar.gz", "file-name-package.tar.gz",
] ]
- id: version - id: artifact.version
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The version of the artifact. The version of the artifact.
examples: ["v0.1.0", "1.2.1", "122691-build"] examples: ["v0.1.0", "1.2.1", "122691-build"]
- id: purl - id: artifact.purl
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -46,7 +45,7 @@ groups:
"pkg:github/package-url/purl-spec@1209109710924", "pkg:github/package-url/purl-spec@1209109710924",
"pkg:npm/foo@12.12.3", "pkg:npm/foo@12.12.3",
] ]
- id: hash - id: artifact.hash
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -64,13 +63,13 @@ groups:
deem necessary. deem necessary.
examples: examples:
["9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"] ["9ff4c52759e2c4ac70b7d517bc7fcdc1cda631ca0045271ddd1b192544f8a3e9"]
- id: attestation.id - id: artifact.attestation.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The id of the build [software attestation](https://slsa.dev/attestation-model). The id of the build [software attestation](https://slsa.dev/attestation-model).
examples: ["123"] examples: ["123"]
- id: attestation.filename - id: artifact.attestation.filename
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -86,7 +85,7 @@ groups:
"release-1.tar.gz.attestation", "release-1.tar.gz.attestation",
"file-name-package.tar.gz.intoto.json1", "file-name-package.tar.gz.intoto.json1",
] ]
- id: attestation.hash - id: artifact.attestation.hash
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,18 +1,16 @@
groups: groups:
- id: registry.aspnetcore - id: registry.aspnetcore
prefix: aspnetcore
type: attribute_group type: attribute_group
display_name: ASP.NET Core Attributes display_name: ASP.NET Core Attributes
brief: ASP.NET Core attributes brief: ASP.NET Core attributes
attributes: attributes:
- id: rate_limiting.policy - id: aspnetcore.rate_limiting.policy
type: string type: string
brief: Rate limiting policy name. brief: Rate limiting policy name.
stability: stable stability: stable
examples: ["fixed", "sliding", "token"] examples: ["fixed", "sliding", "token"]
- id: rate_limiting.result - id: aspnetcore.rate_limiting.result
type: type:
allow_custom_values: true
members: members:
- id: acquired - id: acquired
value: 'acquired' value: 'acquired'
@ -34,12 +32,12 @@ groups:
brief: Rate-limiting result, shows whether the lease was acquired or contains a rejection reason brief: Rate-limiting result, shows whether the lease was acquired or contains a rejection reason
examples: ["acquired", "request_canceled"] examples: ["acquired", "request_canceled"]
requirement_level: required requirement_level: required
- id: routing.is_fallback - id: aspnetcore.routing.is_fallback
type: boolean type: boolean
stability: stable stability: stable
brief: A value that indicates whether the matched route is a fallback route. brief: A value that indicates whether the matched route is a fallback route.
examples: [true] examples: [true]
- id: diagnostics.handler.type - id: aspnetcore.diagnostics.handler.type
type: string type: string
stability: stable stability: stable
brief: Full type name of the [`IExceptionHandler`](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler) brief: Full type name of the [`IExceptionHandler`](https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.diagnostics.iexceptionhandler)
@ -47,14 +45,13 @@ groups:
examples: ["Contoso.MyHandler"] examples: ["Contoso.MyHandler"]
requirement_level: requirement_level:
conditionally_required: if and only if the exception was handled by this handler. conditionally_required: if and only if the exception was handled by this handler.
- id: request.is_unhandled - id: aspnetcore.request.is_unhandled
type: boolean type: boolean
stability: stable stability: stable
brief: Flag indicating if request was handled by the application pipeline. brief: Flag indicating if request was handled by the application pipeline.
examples: [true] examples: [true]
- id: routing.match_status - id: aspnetcore.routing.match_status
type: type:
allow_custom_values: true
members: members:
- id: success - id: success
value: 'success' value: 'success'
@ -67,7 +64,7 @@ groups:
stability: stable stability: stable
brief: Match result - success or failure brief: Match result - success or failure
examples: ["success", "failure"] examples: ["success", "failure"]
- id: diagnostics.exception.result - id: aspnetcore.diagnostics.exception.result
type: type:
members: members:
- id: handled - id: handled

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.aws - id: registry.aws
prefix: aws
type: attribute_group type: attribute_group
display_name: General AWS Attributes display_name: General AWS Attributes
brief: > brief: >
This document defines generic attributes for AWS services. This document defines generic attributes for AWS services.
attributes: attributes:
- id: request_id - id: aws.request_id
type: string type: string
stability: experimental stability: experimental
brief: "The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`." brief: "The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`."
@ -14,20 +13,19 @@ groups:
- 79b9da39-b7ae-508a-a6bc-864b2829c622 - 79b9da39-b7ae-508a-a6bc-864b2829c622
- C9ER4AJX75574TDJ - C9ER4AJX75574TDJ
- id: registry.aws.dynamodb - id: registry.aws.dynamodb
prefix: aws.dynamodb
type: attribute_group type: attribute_group
display_name: Amazon DynamoDB Attributes display_name: Amazon DynamoDB Attributes
brief: > brief: >
This document defines attributes for AWS DynamoDB. This document defines attributes for AWS DynamoDB.
attributes: attributes:
- id: table_names - id: aws.dynamodb.table_names
type: string[] type: string[]
stability: experimental stability: experimental
brief: The keys in the `RequestItems` object field. brief: The keys in the `RequestItems` object field.
examples: examples:
- Users - Users
- Cats - Cats
- id: consumed_capacity - id: aws.dynamodb.consumed_capacity
type: string[] type: string[]
stability: experimental stability: experimental
brief: "The JSON-serialized value of each item in the `ConsumedCapacity` response field." brief: "The JSON-serialized value of each item in the `ConsumedCapacity` response field."
@ -57,7 +55,7 @@ groups:
"TableName": "string", "TableName": "string",
"WriteCapacityUnits": number "WriteCapacityUnits": number
}' }'
- id: item_collection_metrics - id: aws.dynamodb.item_collection_metrics
type: string type: string
stability: experimental stability: experimental
brief: "The JSON-serialized value of the `ItemCollectionMetrics` response field." brief: "The JSON-serialized value of the `ItemCollectionMetrics` response field."
@ -87,25 +85,25 @@ groups:
} }
] ]
}' }'
- id: provisioned_read_capacity - id: aws.dynamodb.provisioned_read_capacity
type: double type: double
stability: experimental stability: experimental
brief: "The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter." brief: "The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter."
examples: examples:
- 1.0 - 1.0
- 2.0 - 2.0
- id: provisioned_write_capacity - id: aws.dynamodb.provisioned_write_capacity
type: double type: double
stability: experimental stability: experimental
brief: "The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter." brief: "The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter."
examples: examples:
- 1.0 - 1.0
- 2.0 - 2.0
- id: consistent_read - id: aws.dynamodb.consistent_read
type: boolean type: boolean
stability: experimental stability: experimental
brief: "The value of the `ConsistentRead` request parameter." brief: "The value of the `ConsistentRead` request parameter."
- id: projection - id: aws.dynamodb.projection
type: string type: string
stability: experimental stability: experimental
brief: "The value of the `ProjectionExpression` request parameter." brief: "The value of the `ProjectionExpression` request parameter."
@ -113,33 +111,33 @@ groups:
- Title - Title
- Title, Price, Color - Title, Price, Color
- Title, Description, RelatedItems, ProductReviews - Title, Description, RelatedItems, ProductReviews
- id: limit - id: aws.dynamodb.limit
type: int type: int
stability: experimental stability: experimental
brief: "The value of the `Limit` request parameter." brief: "The value of the `Limit` request parameter."
examples: examples:
- 10 - 10
- id: attributes_to_get - id: aws.dynamodb.attributes_to_get
type: string[] type: string[]
stability: experimental stability: experimental
brief: "The value of the `AttributesToGet` request parameter." brief: "The value of the `AttributesToGet` request parameter."
examples: examples:
- lives - lives
- id - id
- id: index_name - id: aws.dynamodb.index_name
type: string type: string
stability: experimental stability: experimental
brief: "The value of the `IndexName` request parameter." brief: "The value of the `IndexName` request parameter."
examples: examples:
- name_to_group - name_to_group
- id: select - id: aws.dynamodb.select
type: string type: string
stability: experimental stability: experimental
brief: "The value of the `Select` request parameter." brief: "The value of the `Select` request parameter."
examples: examples:
- ALL_ATTRIBUTES - ALL_ATTRIBUTES
- COUNT - COUNT
- id: global_secondary_indexes - id: aws.dynamodb.global_secondary_indexes
type: string[] type: string[]
stability: experimental stability: experimental
brief: "The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field" brief: "The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field"
@ -161,7 +159,7 @@ groups:
"WriteCapacityUnits": number "WriteCapacityUnits": number
} }
}' }'
- id: local_secondary_indexes - id: aws.dynamodb.local_secondary_indexes
type: string[] type: string[]
stability: experimental stability: experimental
brief: "The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field." brief: "The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field."
@ -182,48 +180,48 @@ groups:
"ProjectionType": "string" "ProjectionType": "string"
} }
}' }'
- id: exclusive_start_table - id: aws.dynamodb.exclusive_start_table
type: string type: string
stability: experimental stability: experimental
brief: "The value of the `ExclusiveStartTableName` request parameter." brief: "The value of the `ExclusiveStartTableName` request parameter."
examples: examples:
- Users - Users
- CatsTable - CatsTable
- id: table_count - id: aws.dynamodb.table_count
type: int type: int
stability: experimental stability: experimental
brief: "The number of items in the `TableNames` response parameter." brief: "The number of items in the `TableNames` response parameter."
examples: examples:
- 20 - 20
- id: scan_forward - id: aws.dynamodb.scan_forward
type: boolean type: boolean
stability: experimental stability: experimental
brief: "The value of the `ScanIndexForward` request parameter." brief: "The value of the `ScanIndexForward` request parameter."
- id: segment - id: aws.dynamodb.segment
type: int type: int
stability: experimental stability: experimental
brief: "The value of the `Segment` request parameter." brief: "The value of the `Segment` request parameter."
examples: examples:
- 10 - 10
- id: total_segments - id: aws.dynamodb.total_segments
type: int type: int
stability: experimental stability: experimental
brief: "The value of the `TotalSegments` request parameter." brief: "The value of the `TotalSegments` request parameter."
examples: examples:
- 100 - 100
- id: count - id: aws.dynamodb.count
type: int type: int
stability: experimental stability: experimental
brief: "The value of the `Count` response parameter." brief: "The value of the `Count` response parameter."
examples: examples:
- 10 - 10
- id: scanned_count - id: aws.dynamodb.scanned_count
type: int type: int
stability: experimental stability: experimental
brief: "The value of the `ScannedCount` response parameter." brief: "The value of the `ScannedCount` response parameter."
examples: examples:
- 50 - 50
- id: attribute_definitions - id: aws.dynamodb.attribute_definitions
type: string[] type: string[]
stability: experimental stability: experimental
brief: "The JSON-serialized value of each item in the `AttributeDefinitions` request field." brief: "The JSON-serialized value of each item in the `AttributeDefinitions` request field."
@ -232,7 +230,7 @@ groups:
"AttributeName": "string", "AttributeName": "string",
"AttributeType": "string" "AttributeType": "string"
}' }'
- id: global_secondary_index_updates - id: aws.dynamodb.global_secondary_index_updates
type: string[] type: string[]
stability: experimental stability: experimental
brief: "The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field." brief: "The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field."
@ -256,27 +254,25 @@ groups:
} }
}' }'
- id: registry.aws.ecs - id: registry.aws.ecs
prefix: aws.ecs
type: attribute_group type: attribute_group
display_name: Amazon ECS Attributes display_name: Amazon ECS Attributes
brief: > brief: >
This document defines attributes for AWS Elastic Container Service (ECS). This document defines attributes for AWS Elastic Container Service (ECS).
attributes: attributes:
- id: container.arn - id: aws.ecs.container.arn
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html).
examples: ['arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9'] examples: ['arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9']
- id: cluster.arn - id: aws.ecs.cluster.arn
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html).
examples: ['arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster'] examples: ['arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster']
- id: launchtype - id: aws.ecs.launchtype
type: type:
allow_custom_values: true
members: members:
- id: ec2 - id: ec2
value: "ec2" value: "ec2"
@ -287,7 +283,7 @@ groups:
stability: experimental stability: experimental
brief: > brief: >
The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.
- id: task.arn - id: aws.ecs.task.arn
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -296,13 +292,13 @@ groups:
'arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b', 'arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b',
'arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd' 'arn:aws:ecs:us-west-1:123456789123:task/my-cluster/task-id/23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd'
] ]
- id: task.family - id: aws.ecs.task.family
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The family name of the [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) used to create the ECS task. The family name of the [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html) used to create the ECS task.
examples: ['opentelemetry-family'] examples: ['opentelemetry-family']
- id: task.id - id: aws.ecs.task.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -310,33 +306,31 @@ groups:
requirement_level: requirement_level:
conditionally_required: If and only if `task.arn` is populated. conditionally_required: If and only if `task.arn` is populated.
examples: [ '10838bed-421f-43ef-870a-f43feacbbb5b', '23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd' ] examples: [ '10838bed-421f-43ef-870a-f43feacbbb5b', '23ebb8ac-c18f-46c6-8bbe-d55d0e37cfbd' ]
- id: task.revision - id: aws.ecs.task.revision
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The revision for the task definition used to create the ECS task. The revision for the task definition used to create the ECS task.
examples: ["8", "26"] examples: ["8", "26"]
- id: registry.aws.eks - id: registry.aws.eks
prefix: aws.eks
type: attribute_group type: attribute_group
display_name: Amazon EKS Attributes display_name: Amazon EKS Attributes
brief: > brief: >
This document defines attributes for AWS Elastic Kubernetes Service (EKS). This document defines attributes for AWS Elastic Kubernetes Service (EKS).
attributes: attributes:
- id: cluster.arn - id: aws.eks.cluster.arn
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The ARN of an EKS cluster. The ARN of an EKS cluster.
examples: ['arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster'] examples: ['arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster']
- id: registry.aws.log - id: registry.aws.log
prefix: aws.log
type: attribute_group type: attribute_group
display_name: Amazon Logs Attributes display_name: Amazon Logs Attributes
brief: > brief: >
This document defines attributes for AWS Logs. This document defines attributes for AWS Logs.
attributes: attributes:
- id: group.names - id: aws.log.group.names
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
@ -346,7 +340,7 @@ groups:
Multiple log groups must be supported for cases like multi-container applications, Multiple log groups must be supported for cases like multi-container applications,
where a single application has sidecar containers, and each write to their own log where a single application has sidecar containers, and each write to their own log
group. group.
- id: group.arns - id: aws.log.group.arns
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
@ -355,13 +349,13 @@ groups:
note: > note: >
See the See the
[log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format).
- id: stream.names - id: aws.log.stream.names
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
The name(s) of the AWS log stream(s) an application is writing to. The name(s) of the AWS log stream(s) an application is writing to.
examples: ['logs/main/10838bed-421f-43ef-870a-f43feacbbb5b'] examples: ['logs/main/10838bed-421f-43ef-870a-f43feacbbb5b']
- id: stream.arns - id: aws.log.stream.arns
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
@ -374,13 +368,12 @@ groups:
group and a log stream. group and a log stream.
- id: registry.aws.lambda - id: registry.aws.lambda
prefix: aws.lambda
type: attribute_group type: attribute_group
display_name: Amazon Lambda Attributes display_name: Amazon Lambda Attributes
brief: > brief: >
This document defines attributes for AWS Lambda. This document defines attributes for AWS Lambda.
attributes: attributes:
- id: invoked_arn - id: aws.lambda.invoked_arn
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -389,13 +382,12 @@ groups:
note: This may be different from `cloud.resource_id` if an alias is involved. note: This may be different from `cloud.resource_id` if an alias is involved.
examples: ['arn:aws:lambda:us-east-1:123456:function:myfunction:myalias'] examples: ['arn:aws:lambda:us-east-1:123456:function:myfunction:myalias']
- id: registry.aws.s3 - id: registry.aws.s3
prefix: aws.s3
type: attribute_group type: attribute_group
display_name: Amazon S3 Attributes display_name: Amazon S3 Attributes
brief: > brief: >
This document defines attributes for AWS S3. This document defines attributes for AWS S3.
attributes: attributes:
- id: bucket - id: aws.s3.bucket
type: string type: string
stability: experimental stability: experimental
brief: "The S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations." brief: "The S3 bucket name the request refers to. Corresponds to the `--bucket` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations."
@ -404,7 +396,7 @@ groups:
note: | note: |
The `bucket` attribute is applicable to all S3 operations that reference a bucket, i.e. that require the bucket name as a mandatory parameter. The `bucket` attribute is applicable to all S3 operations that reference a bucket, i.e. that require the bucket name as a mandatory parameter.
This applies to almost all S3 operations except `list-buckets`. This applies to almost all S3 operations except `list-buckets`.
- id: key - id: aws.s3.key
type: string type: string
stability: experimental stability: experimental
brief: "The S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations." brief: "The S3 object key the request refers to. Corresponds to the `--key` parameter of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) operations."
@ -427,7 +419,7 @@ groups:
- [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html) - [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html)
- [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) - [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html)
- [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html)
- id: copy_source - id: aws.s3.copy_source
type: string type: string
stability: experimental stability: experimental
brief: "The source object (in the form `bucket`/`key`) for the copy operation." brief: "The source object (in the form `bucket`/`key`) for the copy operation."
@ -440,7 +432,7 @@ groups:
- [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html) - [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html)
- [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html)
- id: upload_id - id: aws.s3.upload_id
type: string type: string
stability: experimental stability: experimental
brief: "Upload ID that identifies the multipart upload." brief: "Upload ID that identifies the multipart upload."
@ -456,7 +448,7 @@ groups:
- [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html) - [list-parts](https://docs.aws.amazon.com/cli/latest/reference/s3api/list-parts.html)
- [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html) - [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html)
- [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) - [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html)
- id: delete - id: aws.s3.delete
type: string type: string
stability: experimental stability: experimental
brief: "The delete request container that specifies the objects to be deleted." brief: "The delete request container that specifies the objects to be deleted."
@ -466,7 +458,7 @@ groups:
The `delete` attribute is only applicable to the [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html) operation. The `delete` attribute is only applicable to the [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html) operation.
The `delete` attribute corresponds to the `--delete` parameter of the The `delete` attribute corresponds to the `--delete` parameter of the
[delete-objects operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html). [delete-objects operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html).
- id: part_number - id: aws.s3.part_number
type: int type: int
stability: experimental stability: experimental
brief: "The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000." brief: "The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000."

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.browser - id: registry.browser
prefix: browser
type: attribute_group type: attribute_group
display_name: Browser Attributes display_name: Browser Attributes
brief: > brief: >
The web browser attributes The web browser attributes
attributes: attributes:
- id: brands - id: browser.brands
type: string[] type: string[]
stability: experimental stability: experimental
brief: 'Array of brand name and version separated by a space' brief: 'Array of brand name and version separated by a space'
@ -15,7 +14,7 @@ groups:
[UA client hints API](https://wicg.github.io/ua-client-hints/#interface) [UA client hints API](https://wicg.github.io/ua-client-hints/#interface)
(`navigator.userAgentData.brands`). (`navigator.userAgentData.brands`).
examples: [ " Not A;Brand 99", "Chromium 99", "Chrome 99" ] examples: [ " Not A;Brand 99", "Chromium 99", "Chrome 99" ]
- id: platform - id: browser.platform
type: string type: string
stability: experimental stability: experimental
brief: 'The platform on which the browser is running' brief: 'The platform on which the browser is running'
@ -33,7 +32,7 @@ groups:
However, for consistency, the values in the `browser.platform` attribute However, for consistency, the values in the `browser.platform` attribute
should capture the exact value that the user agent provides. should capture the exact value that the user agent provides.
examples: ['Windows', 'macOS', 'Android'] examples: ['Windows', 'macOS', 'Android']
- id: mobile - id: browser.mobile
type: boolean type: boolean
stability: experimental stability: experimental
brief: 'A boolean that is true if the browser is running on a mobile device' brief: 'A boolean that is true if the browser is running on a mobile device'
@ -42,7 +41,7 @@ groups:
[UA client hints API](https://wicg.github.io/ua-client-hints/#interface) [UA client hints API](https://wicg.github.io/ua-client-hints/#interface)
(`navigator.userAgentData.mobile`). If unavailable, this attribute (`navigator.userAgentData.mobile`). If unavailable, this attribute
SHOULD be left unset. SHOULD be left unset.
- id: language - id: browser.language
type: string type: string
stability: experimental stability: experimental
brief: 'Preferred language of the user using the browser' brief: 'Preferred language of the user using the browser'

View File

@ -1,6 +1,5 @@
groups: groups:
- id: registry.cicd.pipeline - id: registry.cicd.pipeline
prefix: cicd.pipeline
type: attribute_group type: attribute_group
brief: > brief: >
This group describes attributes specific to pipelines within a Continuous This group describes attributes specific to pipelines within a Continuous
@ -13,7 +12,7 @@ groups:
producing something. In the context of CI/CD, a pipeline produces or producing something. In the context of CI/CD, a pipeline produces or
delivers software. delivers software.
attributes: attributes:
- id: name - id: cicd.pipeline.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -25,13 +24,13 @@ groups:
"Deploy Go Project", "Deploy Go Project",
"deploy_to_environment", "deploy_to_environment",
] ]
- id: run.id - id: cicd.pipeline.run.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The unique identifier of a pipeline run within a CI/CD system. The unique identifier of a pipeline run within a CI/CD system.
examples: ["120912"] examples: ["120912"]
- id: task.name - id: cicd.pipeline.task.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -40,13 +39,13 @@ groups:
in a pipeline. Other terms for tasks include commands, steps, and in a pipeline. Other terms for tasks include commands, steps, and
procedures. procedures.
examples: ["Run GoLang Linter", "Go Build", "go-test", "deploy_binary"] examples: ["Run GoLang Linter", "Go Build", "go-test", "deploy_binary"]
- id: task.run.id - id: cicd.pipeline.task.run.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The unique identifier of a task run within a pipeline. The unique identifier of a task run within a pipeline.
examples: ["12097"] examples: ["12097"]
- id: task.run.url.full - id: cicd.pipeline.task.run.url.full
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -56,7 +55,7 @@ groups:
[ [
"https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075", "https://github.com/open-telemetry/semantic-conventions/actions/runs/9753949763/job/26920038674?pr=1075",
] ]
- id: task.type - id: cicd.pipeline.task.type
type: type:
members: members:
- id: build - id: build

View File

@ -1,6 +1,5 @@
groups: groups:
- id: registry.client - id: registry.client
prefix: client
type: attribute_group type: attribute_group
display_name: Client Attributes display_name: Client Attributes
brief: > brief: >
@ -11,7 +10,7 @@ groups:
protocol / API doesn't expose a clear notion of client and server). protocol / API doesn't expose a clear notion of client and server).
This also covers UDP network interactions where one side initiates the interaction, e.g. QUIC (HTTP/3) and DNS. This also covers UDP network interactions where one side initiates the interaction, e.g. QUIC (HTTP/3) and DNS.
attributes: attributes:
- id: address - id: client.address
stability: stable stability: stable
type: string type: string
brief: "Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name." brief: "Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name."
@ -19,7 +18,7 @@ groups:
When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent When observed from the server side, and when communicating through an intermediary, `client.address` SHOULD represent
the client address behind any intermediaries, for example proxies, if it's available. the client address behind any intermediaries, for example proxies, if it's available.
examples: ['client.example.com', '10.1.2.80', '/tmp/my.sock'] examples: ['client.example.com', '10.1.2.80', '/tmp/my.sock']
- id: port - id: client.port
stability: stable stability: stable
type: int type: int
brief: Client port number. brief: Client port number.

View File

@ -1,14 +1,12 @@
groups: groups:
- id: registry.cloud - id: registry.cloud
prefix: cloud
type: attribute_group type: attribute_group
display_name: Cloud Attributes display_name: Cloud Attributes
brief: > brief: >
A cloud environment (e.g. GCP, Azure, AWS). A cloud environment (e.g. GCP, Azure, AWS).
attributes: attributes:
- id: provider - id: cloud.provider
type: type:
allow_custom_values: true
members: members:
- id: 'alibaba_cloud' - id: 'alibaba_cloud'
value: 'alibaba_cloud' value: 'alibaba_cloud'
@ -41,13 +39,13 @@ groups:
stability: experimental stability: experimental
brief: > brief: >
Name of the cloud provider. Name of the cloud provider.
- id: account.id - id: cloud.account.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The cloud account ID the resource is assigned to. The cloud account ID the resource is assigned to.
examples: ['111111111111', 'opentelemetry'] examples: ['111111111111', 'opentelemetry']
- id: region - id: cloud.region
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -60,7 +58,7 @@ groups:
[Google Cloud regions](https://cloud.google.com/about/locations), [Google Cloud regions](https://cloud.google.com/about/locations),
or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091). or [Tencent Cloud regions](https://www.tencentcloud.com/document/product/213/6091).
examples: ['us-central1', 'us-east-1'] examples: ['us-central1', 'us-east-1']
- id: resource_id - id: cloud.resource_id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -90,7 +88,7 @@ groups:
- 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function' - 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function'
- '//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID' - '//run.googleapis.com/projects/PROJECT_ID/locations/LOCATION_ID/services/SERVICE_ID'
- '/subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>' - '/subscriptions/<SUBSCIPTION_GUID>/resourceGroups/<RG>/providers/Microsoft.Web/sites/<FUNCAPP>/functions/<FUNC>'
- id: availability_zone - id: cloud.availability_zone
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -100,9 +98,8 @@ groups:
note: > note: >
Availability zones are called "zones" on Alibaba Cloud and Google Cloud. Availability zones are called "zones" on Alibaba Cloud and Google Cloud.
examples: ['us-east-1c'] examples: ['us-east-1c']
- id: platform - id: cloud.platform
type: type:
allow_custom_values: true
members: members:
- id: alibaba_cloud_ecs - id: alibaba_cloud_ecs
value: 'alibaba_cloud_ecs' value: 'alibaba_cloud_ecs'

View File

@ -1,36 +1,35 @@
groups: groups:
- id: registry.cloudevents - id: registry.cloudevents
prefix: cloudevents
type: attribute_group type: attribute_group
display_name: CloudEvents Attributes display_name: CloudEvents Attributes
brief: > brief: >
This document defines attributes for CloudEvents. This document defines attributes for CloudEvents.
attributes: attributes:
- id: event_id - id: cloudevents.event_id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event. The [event_id](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#id) uniquely identifies the event.
examples: ['123e4567-e89b-12d3-a456-426614174000', '0001'] examples: ['123e4567-e89b-12d3-a456-426614174000', '0001']
- id: event_source - id: cloudevents.event_source
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened. The [source](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#source-1) identifies the context in which an event happened.
examples: ['https://github.com/cloudevents', '/cloudevents/spec/pull/123', 'my-service' ] examples: ['https://github.com/cloudevents', '/cloudevents/spec/pull/123', 'my-service' ]
- id: event_spec_version - id: cloudevents.event_spec_version
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses. The [version of the CloudEvents specification](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#specversion) which the event uses.
examples: '1.0' examples: '1.0'
- id: event_type - id: cloudevents.event_type
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The [event_type](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type) contains a value describing the type of event related to the originating occurrence. The [event_type](https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/spec.md#type) contains a value describing the type of event related to the originating occurrence.
examples: ['com.github.pull_request.opened', 'com.example.object.deleted.v2'] examples: ['com.github.pull_request.opened', 'com.example.object.deleted.v2']
- id: event_subject - id: cloudevents.event_subject
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,43 +1,42 @@
groups: groups:
- id: registry.code - id: registry.code
prefix: code
type: attribute_group type: attribute_group
display_name: Code Attributes display_name: Code Attributes
brief: > brief: >
These attributes allow to report this unit of code and therefore to provide more context about the span. These attributes allow to report this unit of code and therefore to provide more context about the span.
attributes: attributes:
- id: function - id: code.function
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The method or function name, or equivalent (usually rightmost part of the code unit's name). The method or function name, or equivalent (usually rightmost part of the code unit's name).
examples: serveRequest examples: serveRequest
- id: namespace - id: code.namespace
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The "namespace" within which `code.function` is defined. Usually the qualified class or module name, The "namespace" within which `code.function` is defined. Usually the qualified class or module name,
such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit. such that `code.namespace` + some separator + `code.function` form a unique identifier for the code unit.
examples: com.example.MyHttpService examples: com.example.MyHttpService
- id: filepath - id: code.filepath
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).
examples: /usr/local/MyApplication/content_root/app/index.php examples: /usr/local/MyApplication/content_root/app/index.php
- id: lineno - id: code.lineno
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. The line number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
examples: 42 examples: 42
- id: column - id: code.column
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`. The column number in `code.filepath` best representing the operation. It SHOULD point within the code unit named in `code.function`.
examples: 16 examples: 16
- id: stacktrace - id: code.stacktrace
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,18 +1,17 @@
groups: groups:
- id: registry.container - id: registry.container
prefix: container
type: attribute_group type: attribute_group
display_name: Container Attributes display_name: Container Attributes
brief: > brief: >
A container instance. A container instance.
attributes: attributes:
- id: name - id: container.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Container name used by container runtime. Container name used by container runtime.
examples: ['opentelemetry-autoconf'] examples: ['opentelemetry-autoconf']
- id: id - id: container.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -20,19 +19,19 @@ groups:
[identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification).
The UUID might be abbreviated. The UUID might be abbreviated.
examples: ['a3bf90e006b2'] examples: ['a3bf90e006b2']
- id: runtime - id: container.runtime
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The container runtime managing this container. The container runtime managing this container.
examples: ['docker', 'containerd', 'rkt'] examples: ['docker', 'containerd', 'rkt']
- id: image.name - id: container.image.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Name of the image the container was built on. Name of the image the container was built on.
examples: ['gcr.io/opentelemetry/operator'] examples: ['gcr.io/opentelemetry/operator']
- id: image.tags - id: container.image.tags
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
@ -41,7 +40,7 @@ groups:
Should be only the `<tag>` section of the full name for example Should be only the `<tag>` section of the full name for example
from `registry.example.com/my-org/my-image:<tag>`. from `registry.example.com/my-org/my-image:<tag>`.
examples: ['v1.27.1', '3.5.7-0'] examples: ['v1.27.1', '3.5.7-0']
- id: image.id - id: container.image.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -58,7 +57,7 @@ groups:
Consider using `oci.manifest.digest` if it is important to identify the same Consider using `oci.manifest.digest` if it is important to identify the same
image in different environments/runtimes. image in different environments/runtimes.
examples: ['sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f'] examples: ['sha256:19c92d0a00d1b66d897bceaa7319bee0dd38a10a851c60bcec9474aa3f01e50f']
- id: image.repo_digests - id: container.image.repo_digests
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
@ -70,7 +69,7 @@ groups:
examples: examples:
- 'example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb' - 'example@sha256:afcc7f1ac1b49db317a7196c902e61c6c3c4607d63599ee1a82d702d249a0ccb'
- 'internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578' - 'internal.registry.example.com:5000/example@sha256:b69959407d21e8a062e0416bf13405bb2b71ed7a84dde4158ebafacfa06f5578'
- id: command - id: container.command
type: string type: string
stability: experimental stability: experimental
note: > note: >
@ -78,19 +77,19 @@ groups:
brief: > brief: >
The command used to run the container (i.e. the command name). The command used to run the container (i.e. the command name).
examples: [ 'otelcontribcol' ] examples: [ 'otelcontribcol' ]
- id: command_line - id: container.command_line
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The full command run by the container as a single string representing the full command. [2] The full command run by the container as a single string representing the full command. [2]
examples: [ 'otelcontribcol --config config.yaml' ] examples: [ 'otelcontribcol --config config.yaml' ]
- id: command_args - id: container.command_args
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
All the command arguments (including the command/executable itself) run by the container. [2] All the command arguments (including the command/executable itself) run by the container. [2]
examples: [ 'otelcontribcol, --config, config.yaml' ] examples: [ 'otelcontribcol, --config, config.yaml' ]
- id: label - id: container.label
type: template[string] type: template[string]
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,14 +1,12 @@
groups: groups:
- id: registry.cpu - id: registry.cpu
prefix: cpu
type: attribute_group type: attribute_group
brief: Attributes specific to a cpu instance. brief: Attributes specific to a cpu instance.
display_name: CPU Attributes display_name: CPU Attributes
attributes: attributes:
- id: mode - id: cpu.mode
brief: "The mode of the CPU" brief: "The mode of the CPU"
type: type:
allow_custom_values: true
# TODO: Fix how enum members are used in semantic conventions after https://github.com/open-telemetry/build-tools/issues/192 is merged # TODO: Fix how enum members are used in semantic conventions after https://github.com/open-telemetry/build-tools/issues/192 is merged
members: members:
- id: user - id: user

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.db - id: registry.db
prefix: db
type: attribute_group type: attribute_group
display_name: General Database Attributes display_name: General Database Attributes
brief: > brief: >
This group defines the attributes used to describe telemetry in the context of databases. This group defines the attributes used to describe telemetry in the context of databases.
attributes: attributes:
- id: collection.name - id: db.collection.name
type: string type: string
stability: experimental stability: experimental
brief: The name of a collection (table, container) within the database. brief: The name of a collection (table, container) within the database.
@ -19,7 +18,7 @@ groups:
For batch operations, if the individual operations are known to have the same collection name For batch operations, if the individual operations are known to have the same collection name
then that collection name SHOULD be used, otherwise `db.collection.name` SHOULD NOT be captured. then that collection name SHOULD be used, otherwise `db.collection.name` SHOULD NOT be captured.
examples: ['public.users', 'customers'] examples: ['public.users', 'customers']
- id: namespace - id: db.namespace
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -35,7 +34,7 @@ groups:
It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization. It is RECOMMENDED to capture the value as provided by the application without attempting to do any case normalization.
examples: [ 'customers', 'test.users' ] examples: [ 'customers', 'test.users' ]
- id: operation.name - id: db.operation.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -49,7 +48,7 @@ groups:
then that operation name SHOULD be used prepended by `BATCH `, then that operation name SHOULD be used prepended by `BATCH `,
otherwise `db.operation.name` SHOULD be `BATCH` or some other database system specific term if more applicable. otherwise `db.operation.name` SHOULD be `BATCH` or some other database system specific term if more applicable.
examples: ['findAndModify', 'HMSET', 'SELECT'] examples: ['findAndModify', 'HMSET', 'SELECT']
- id: query.text - id: db.query.text
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -65,7 +64,7 @@ groups:
the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit the user is giving a strong signal that any sensitive data will be passed as parameter values, and the benefit
to observability of capturing the static part of the query text by default outweighs the risk. to observability of capturing the static part of the query text by default outweighs the risk.
examples: ['SELECT * FROM wuser_table where username = ?', 'SET mykey "WuValue"'] examples: ['SELECT * FROM wuser_table where username = ?', 'SET mykey "WuValue"']
- id: query.parameter - id: db.query.parameter
type: template[string] type: template[string]
stability: experimental stability: experimental
brief: > brief: >
@ -77,7 +76,7 @@ groups:
If a parameter has no name and instead is referenced only by index, If a parameter has no name and instead is referenced only by index,
then `<key>` SHOULD be the 0-based index. then `<key>` SHOULD be the 0-based index.
examples: ['someval', '55'] examples: ['someval', '55']
- id: operation.batch.size - id: db.operation.batch.size
type: int type: int
stability: experimental stability: experimental
brief: The number of queries included in a [batch operation](/docs/database/database-spans.md#batch-operations). brief: The number of queries included in a [batch operation](/docs/database/database-spans.md#batch-operations).
@ -85,14 +84,13 @@ groups:
Operations are only considered batches when they contain two or more operations, Operations are only considered batches when they contain two or more operations,
and so `db.operation.batch.size` SHOULD never be `1`. and so `db.operation.batch.size` SHOULD never be `1`.
examples: [ 2, 3, 4 ] examples: [ 2, 3, 4 ]
- id: system - id: db.system
brief: The database management system (DBMS) product as identified by the client instrumentation. brief: The database management system (DBMS) product as identified by the client instrumentation.
note: > note: >
The actual DBMS may differ from the one identified by the client. The actual DBMS may differ from the one identified by the client.
For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system` For example, when using PostgreSQL client libraries to connect to a CockroachDB, the `db.system`
is set to `postgresql` based on the instrumentation's best knowledge. is set to `postgresql` based on the instrumentation's best knowledge.
type: type:
allow_custom_values: true
members: members:
- id: other_sql - id: other_sql
value: 'other_sql' value: 'other_sql'
@ -316,10 +314,9 @@ groups:
brief: 'Vertica' brief: 'Vertica'
stability: experimental stability: experimental
stability: experimental stability: experimental
- id: client.connection.state - id: db.client.connection.state
stability: experimental stability: experimental
type: type:
allow_custom_values: true
members: members:
- id: idle - id: idle
value: 'idle' value: 'idle'
@ -329,7 +326,7 @@ groups:
stability: experimental stability: experimental
brief: "The state of a connection in the pool" brief: "The state of a connection in the pool"
examples: ["idle"] examples: ["idle"]
- id: client.connection.pool.name - id: db.client.connection.pool.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -339,25 +336,24 @@ groups:
formatted as `server.address:server.port`. formatted as `server.address:server.port`.
examples: ["myDataSource"] examples: ["myDataSource"]
- id: registry.db.cassandra - id: registry.db.cassandra
prefix: db
type: attribute_group type: attribute_group
display_name: Cassandra Attributes display_name: Cassandra Attributes
brief: > brief: >
This group defines attributes for Cassandra. This group defines attributes for Cassandra.
attributes: attributes:
- id: cassandra.coordinator.dc - id: db.cassandra.coordinator.dc
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The data center of the coordinating node for a query. The data center of the coordinating node for a query.
examples: 'us-west-2' examples: 'us-west-2'
- id: cassandra.coordinator.id - id: db.cassandra.coordinator.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The ID of the coordinating node for a query. The ID of the coordinating node for a query.
examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af' examples: 'be13faa2-8574-4d71-926d-27f16cf8a7af'
- id: cassandra.consistency_level - id: db.cassandra.consistency_level
brief: > brief: >
The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html). The consistency level of the query. Based on consistency values from [CQL](https://docs.datastax.com/en/cassandra-oss/3.0/cassandra/dml/dmlConfigConsistency.html).
type: type:
@ -396,38 +392,36 @@ groups:
value: 'local_serial' value: 'local_serial'
stability: experimental stability: experimental
stability: experimental stability: experimental
- id: cassandra.idempotence - id: db.cassandra.idempotence
type: boolean type: boolean
stability: experimental stability: experimental
brief: > brief: >
Whether or not the query is idempotent. Whether or not the query is idempotent.
- id: cassandra.page_size - id: db.cassandra.page_size
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The fetch size used for paging, i.e. how many rows will be returned at once. The fetch size used for paging, i.e. how many rows will be returned at once.
examples: [5000] examples: [5000]
- id: cassandra.speculative_execution_count - id: db.cassandra.speculative_execution_count
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively. The number of times a query was speculatively executed. Not set or `0` if the query was not executed speculatively.
examples: [0, 2] examples: [0, 2]
- id: registry.db.cosmosdb - id: registry.db.cosmosdb
prefix: db
type: attribute_group type: attribute_group
display_name: Azure Cosmos DB Attributes display_name: Azure Cosmos DB Attributes
brief: > brief: >
This group defines attributes for Azure Cosmos DB. This group defines attributes for Azure Cosmos DB.
attributes: attributes:
- id: cosmosdb.client_id - id: db.cosmosdb.client_id
type: string type: string
stability: experimental stability: experimental
brief: Unique Cosmos client instance id. brief: Unique Cosmos client instance id.
examples: '3ba4827d-4422-483f-b59f-85b74211c11d' examples: '3ba4827d-4422-483f-b59f-85b74211c11d'
- id: cosmosdb.connection_mode - id: db.cosmosdb.connection_mode
type: type:
allow_custom_values: false
members: members:
- id: gateway - id: gateway
value: 'gateway' value: 'gateway'
@ -439,9 +433,8 @@ groups:
stability: experimental stability: experimental
stability: experimental stability: experimental
brief: Cosmos client connection mode. brief: Cosmos client connection mode.
- id: cosmosdb.operation_type - id: db.cosmosdb.operation_type
type: type:
allow_custom_values: true
members: members:
- id: invalid - id: invalid
value: 'Invalid' value: 'Invalid'
@ -490,39 +483,38 @@ groups:
stability: experimental stability: experimental
stability: experimental stability: experimental
brief: CosmosDB Operation Type. brief: CosmosDB Operation Type.
- id: cosmosdb.request_charge - id: db.cosmosdb.request_charge
type: double type: double
stability: experimental stability: experimental
brief: RU consumed for that operation brief: RU consumed for that operation
examples: [46.18, 1.0] examples: [46.18, 1.0]
- id: cosmosdb.request_content_length - id: db.cosmosdb.request_content_length
type: int type: int
stability: experimental stability: experimental
brief: Request payload size in bytes brief: Request payload size in bytes
- id: cosmosdb.status_code - id: db.cosmosdb.status_code
type: int type: int
stability: experimental stability: experimental
brief: Cosmos DB status code. brief: Cosmos DB status code.
examples: [200, 201] examples: [200, 201]
- id: cosmosdb.sub_status_code - id: db.cosmosdb.sub_status_code
type: int type: int
stability: experimental stability: experimental
brief: Cosmos DB sub status code. brief: Cosmos DB sub status code.
examples: [1000, 1002] examples: [1000, 1002]
- id: registry.db.elasticsearch - id: registry.db.elasticsearch
prefix: db
type: attribute_group type: attribute_group
display_name: Elasticsearch Attributes display_name: Elasticsearch Attributes
brief: > brief: >
This group defines attributes for Elasticsearch. This group defines attributes for Elasticsearch.
attributes: attributes:
- id: elasticsearch.node.name - id: db.elasticsearch.node.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Represents the human-readable identifier of the node/instance to which a request was routed. Represents the human-readable identifier of the node/instance to which a request was routed.
examples: ["instance-0000000001"] examples: ["instance-0000000001"]
- id: elasticsearch.path_parts - id: db.elasticsearch.path_parts
type: template[string] type: template[string]
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,24 +1,23 @@
groups: groups:
- id: registry.deployment - id: registry.deployment
prefix: deployment
type: attribute_group type: attribute_group
display_name: Deployment Attributes display_name: Deployment Attributes
brief: > brief: >
This document defines attributes for software deployments. This document defines attributes for software deployments.
attributes: attributes:
- id: name - id: deployment.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the deployment. The name of the deployment.
examples: ['deploy my app', 'deploy-frontend'] examples: ['deploy my app', 'deploy-frontend']
- id: id - id: deployment.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The id of the deployment. The id of the deployment.
examples: ['1208'] examples: ['1208']
- id: status - id: deployment.status
type: type:
members: members:
- id: failed - id: failed
@ -32,7 +31,7 @@ groups:
brief: > brief: >
The status of the deployment. The status of the deployment.
stability: experimental stability: experimental
- id: environment.name - id: deployment.environment.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.android.deprecated - id: registry.android.deprecated
prefix: android
type: attribute_group type: attribute_group
display_name: Deprecated Android Attributes display_name: Deprecated Android Attributes
brief: > brief: >
This document defines attributes that represents an occurrence of a lifecycle transition on the Android platform. This document defines attributes that represents an occurrence of a lifecycle transition on the Android platform.
attributes: attributes:
- id: state - id: android.state
stability: experimental stability: experimental
brief: > brief: >
Deprecated use the `device.app.lifecycle` event definition including Deprecated use the `device.app.lifecycle` event definition including
@ -15,7 +14,6 @@ groups:
The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc), The Android lifecycle states are defined in [Activity lifecycle callbacks](https://developer.android.com/guide/components/activities/activity-lifecycle#lc),
and from which the `OS identifiers` are derived. and from which the `OS identifiers` are derived.
type: type:
allow_custom_values: true
members: members:
- id: created - id: created
value: 'created' value: 'created'

View File

@ -13,7 +13,6 @@ groups:
- id: container.cpu.state - id: container.cpu.state
brief: "Deprecated, use `cpu.mode` instead." brief: "Deprecated, use `cpu.mode` instead."
type: type:
allow_custom_values: true
members: members:
- id: user - id: user
value: 'user' value: 'user'

View File

@ -1,91 +1,90 @@
groups: groups:
- id: registry.db.deprecated - id: registry.db.deprecated
prefix: db
type: attribute_group type: attribute_group
display_name: Deprecated Database Attributes display_name: Deprecated Database Attributes
brief: > brief: >
"Describes deprecated db attributes." "Describes deprecated db attributes."
attributes: attributes:
- id: connection_string - id: db.connection_string
type: string type: string
brief: 'Deprecated, use `server.address`, `server.port` attributes instead.' brief: 'Deprecated, use `server.address`, `server.port` attributes instead.'
stability: experimental stability: experimental
deprecated: > deprecated: >
"Replaced by `server.address` and `server.port`." "Replaced by `server.address` and `server.port`."
examples: Server=(localdb)\v11.0;Integrated Security=true; examples: Server=(localdb)\v11.0;Integrated Security=true;
- id: jdbc.driver_classname - id: db.jdbc.driver_classname
type: string type: string
brief: 'Removed, no replacement at this time.' brief: 'Removed, no replacement at this time.'
stability: experimental stability: experimental
deprecated: 'Removed as not used.' deprecated: 'Removed as not used.'
examples: ['org.postgresql.Driver', 'com.microsoft.sqlserver.jdbc.SQLServerDriver'] examples: ['org.postgresql.Driver', 'com.microsoft.sqlserver.jdbc.SQLServerDriver']
- id: operation - id: db.operation
type: string type: string
brief: 'Deprecated, use `db.operation.name` instead.' brief: 'Deprecated, use `db.operation.name` instead.'
stability: experimental stability: experimental
deprecated: "Replaced by `db.operation.name`." deprecated: "Replaced by `db.operation.name`."
examples: ['findAndModify', 'HMSET', 'SELECT'] examples: ['findAndModify', 'HMSET', 'SELECT']
- id: user - id: db.user
type: string type: string
brief: 'Deprecated, no replacement at this time.' brief: 'Deprecated, no replacement at this time.'
deprecated: "No replacement at this time." deprecated: "No replacement at this time."
stability: experimental stability: experimental
examples: ['readonly_user', 'reporting_user'] examples: ['readonly_user', 'reporting_user']
- id: statement - id: db.statement
type: string type: string
brief: The database statement being executed. brief: The database statement being executed.
deprecated: "Replaced by `db.query.text`." deprecated: "Replaced by `db.query.text`."
stability: experimental stability: experimental
examples: ['SELECT * FROM wuser_table', 'SET mykey "WuValue"'] examples: ['SELECT * FROM wuser_table', 'SET mykey "WuValue"']
- id: cassandra.table - id: db.cassandra.table
type: string type: string
stability: experimental stability: experimental
brief: 'Deprecated, use `db.collection.name` instead.' brief: 'Deprecated, use `db.collection.name` instead.'
deprecated: "Replaced by `db.collection.name`." deprecated: "Replaced by `db.collection.name`."
examples: 'mytable' examples: 'mytable'
- id: cosmosdb.container - id: db.cosmosdb.container
type: string type: string
stability: experimental stability: experimental
brief: 'Deprecated, use `db.collection.name` instead.' brief: 'Deprecated, use `db.collection.name` instead.'
deprecated: "Replaced by `db.collection.name`." deprecated: "Replaced by `db.collection.name`."
examples: 'mytable' examples: 'mytable'
- id: mongodb.collection - id: db.mongodb.collection
type: string type: string
stability: experimental stability: experimental
brief: 'Deprecated, use `db.collection.name` instead.' brief: 'Deprecated, use `db.collection.name` instead.'
deprecated: "Replaced by `db.collection.name`." deprecated: "Replaced by `db.collection.name`."
examples: 'mytable' examples: 'mytable'
- id: sql.table - id: db.sql.table
type: string type: string
stability: experimental stability: experimental
brief: 'Deprecated, use `db.collection.name` instead.' brief: 'Deprecated, use `db.collection.name` instead.'
deprecated: "Replaced by `db.collection.name`." deprecated: "Replaced by `db.collection.name`."
examples: 'mytable' examples: 'mytable'
- id: redis.database_index - id: db.redis.database_index
type: int type: int
stability: experimental stability: experimental
brief: 'Deprecated, use `db.namespace` instead.' brief: 'Deprecated, use `db.namespace` instead.'
deprecated: "Replaced by `db.namespace`." deprecated: "Replaced by `db.namespace`."
examples: [0, 1, 15] examples: [0, 1, 15]
- id: name - id: db.name
type: string type: string
stability: experimental stability: experimental
brief: 'Deprecated, use `db.namespace` instead.' brief: 'Deprecated, use `db.namespace` instead.'
deprecated: "Replaced by `db.namespace`." deprecated: "Replaced by `db.namespace`."
examples: [ 'customers', 'main' ] examples: [ 'customers', 'main' ]
- id: mssql.instance_name - id: db.mssql.instance_name
type: string type: string
stability: experimental stability: experimental
brief: 'Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute.' brief: 'Deprecated, SQL Server instance is now populated as a part of `db.namespace` attribute.'
deprecated: 'Deprecated, no replacement at this time.' deprecated: 'Deprecated, no replacement at this time.'
examples: 'MSSQLSERVER' examples: 'MSSQLSERVER'
- id: instance.id - id: db.instance.id
type: string type: string
stability: experimental stability: experimental
brief: 'Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead.' brief: 'Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead.'
deprecated: 'Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead.' deprecated: 'Deprecated, no general replacement at this time. For Elasticsearch, use `db.elasticsearch.node.name` instead.'
examples: 'mysql-e26b99z.example.com' examples: 'mysql-e26b99z.example.com'
- id: elasticsearch.cluster.name - id: db.elasticsearch.cluster.name
type: string type: string
stability: experimental stability: experimental
deprecated: Replaced by `db.namespace`. deprecated: Replaced by `db.namespace`.
@ -102,7 +101,6 @@ groups:
- id: state - id: state
stability: experimental stability: experimental
type: type:
allow_custom_values: true
members: members:
- id: idle - id: idle
value: 'idle' value: 'idle'
@ -122,7 +120,6 @@ groups:
- id: db.client.connections.state - id: db.client.connections.state
stability: experimental stability: experimental
type: type:
allow_custom_values: true
members: members:
- id: idle - id: idle
value: 'idle' value: 'idle'

View File

@ -1,11 +1,10 @@
groups: groups:
- id: registry.deployment.deprecated - id: registry.deployment.deprecated
prefix: deployment
type: attribute_group type: attribute_group
brief: > brief: >
"Describes deprecated deployment attributes." "Describes deprecated deployment attributes."
attributes: attributes:
- id: environment - id: deployment.environment
type: string type: string
stability: experimental stability: experimental
deprecated: 'Deprecated, use `deployment.environment.name` instead.' deprecated: 'Deprecated, use `deployment.environment.name` instead.'

View File

@ -1,23 +1,22 @@
groups: groups:
- id: registry.enduser.deprecated - id: registry.enduser.deprecated
prefix: enduser
type: attribute_group type: attribute_group
display_name: Deprecated End User Attributes display_name: Deprecated End User Attributes
brief: Describes deprecated enduser attributes. Complete enduser namespace has been deprecated brief: Describes deprecated enduser attributes. Complete enduser namespace has been deprecated
attributes: attributes:
- id: id - id: enduser.id
type: string type: string
stability: experimental stability: experimental
deprecated: Replaced by `user.id` attribute. deprecated: Replaced by `user.id` attribute.
brief: "Deprecated, use `user.id` instead." brief: "Deprecated, use `user.id` instead."
examples: 'username' examples: 'username'
- id: role - id: enduser.role
type: string type: string
stability: experimental stability: experimental
deprecated: Replaced by `user.roles` attribute. deprecated: Replaced by `user.roles` attribute.
brief: "Deprecated, use `user.roles` instead." brief: "Deprecated, use `user.roles` instead."
examples: 'admin' examples: 'admin'
- id: scope - id: enduser.scope
type: string type: string
stability: experimental stability: experimental
deprecated: Removed. deprecated: Removed.

View File

@ -3,83 +3,81 @@ groups:
type: attribute_group type: attribute_group
display_name: Deprecated HTTP Attributes display_name: Deprecated HTTP Attributes
brief: "Describes deprecated HTTP attributes." brief: "Describes deprecated HTTP attributes."
prefix: http
attributes: attributes:
- id: method - id: http.method
type: string type: string
brief: 'Deprecated, use `http.request.method` instead.' brief: 'Deprecated, use `http.request.method` instead.'
stability: experimental stability: experimental
deprecated: "Replaced by `http.request.method`." deprecated: "Replaced by `http.request.method`."
examples: ["GET", "POST", "HEAD"] examples: ["GET", "POST", "HEAD"]
- id: status_code - id: http.status_code
type: int type: int
brief: 'Deprecated, use `http.response.status_code` instead.' brief: 'Deprecated, use `http.response.status_code` instead.'
stability: experimental stability: experimental
deprecated: "Replaced by `http.response.status_code`." deprecated: "Replaced by `http.response.status_code`."
examples: [200] examples: [200]
- id: scheme - id: http.scheme
type: string type: string
brief: 'Deprecated, use `url.scheme` instead.' brief: 'Deprecated, use `url.scheme` instead.'
stability: experimental stability: experimental
deprecated: "Replaced by `url.scheme` instead." deprecated: "Replaced by `url.scheme` instead."
examples: ['http', 'https'] examples: ['http', 'https']
- id: url - id: http.url
type: string type: string
brief: 'Deprecated, use `url.full` instead.' brief: 'Deprecated, use `url.full` instead.'
stability: experimental stability: experimental
deprecated: "Replaced by `url.full`." deprecated: "Replaced by `url.full`."
examples: ['https://www.foo.bar/search?q=OpenTelemetry#SemConv'] examples: ['https://www.foo.bar/search?q=OpenTelemetry#SemConv']
- id: target - id: http.target
type: string type: string
brief: 'Deprecated, use `url.path` and `url.query` instead.' brief: 'Deprecated, use `url.path` and `url.query` instead.'
stability: experimental stability: experimental
deprecated: "Split to `url.path` and `url.query." deprecated: "Split to `url.path` and `url.query."
examples: ['/search?q=OpenTelemetry#SemConv'] examples: ['/search?q=OpenTelemetry#SemConv']
- id: request_content_length - id: http.request_content_length
type: int type: int
brief: 'Deprecated, use `http.request.header.content-length` instead.' brief: 'Deprecated, use `http.request.header.content-length` instead.'
stability: experimental stability: experimental
deprecated: "Replaced by `http.request.header.content-length`." deprecated: "Replaced by `http.request.header.content-length`."
examples: 3495 examples: 3495
- id: response_content_length - id: http.response_content_length
type: int type: int
brief: 'Deprecated, use `http.response.header.content-length` instead.' brief: 'Deprecated, use `http.response.header.content-length` instead.'
stability: experimental stability: experimental
deprecated: "Replaced by `http.response.header.content-length`." deprecated: "Replaced by `http.response.header.content-length`."
examples: 3495 examples: 3495
- id: client_ip - id: http.client_ip
type: string type: string
stability: experimental stability: experimental
deprecated: "Replaced by `client.address`." deprecated: "Replaced by `client.address`."
brief: "Deprecated, use `client.address` instead." brief: "Deprecated, use `client.address` instead."
examples: '83.164.160.102' examples: '83.164.160.102'
- id: host - id: http.host
type: string type: string
stability: experimental stability: experimental
deprecated: "Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage." deprecated: "Replaced by one of `server.address`, `client.address` or `http.request.header.host`, depending on the usage."
brief: "Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage." brief: "Deprecated, use one of `server.address`, `client.address` or `http.request.header.host` instead, depending on the usage."
examples: ['www.example.org'] examples: ['www.example.org']
- id: request_content_length_uncompressed - id: http.request_content_length_uncompressed
stability: experimental stability: experimental
deprecated: "Replaced by `http.request.body.size`." deprecated: "Replaced by `http.request.body.size`."
type: int type: int
brief: "Deprecated, use `http.request.body.size` instead." brief: "Deprecated, use `http.request.body.size` instead."
examples: 5493 examples: 5493
- id: response_content_length_uncompressed - id: http.response_content_length_uncompressed
stability: experimental stability: experimental
deprecated: "Replace by `http.response.body.size`." deprecated: "Replace by `http.response.body.size`."
type: int type: int
brief: "Deprecated, use `http.response.body.size` instead." brief: "Deprecated, use `http.response.body.size` instead."
examples: 5493 examples: 5493
- id: server_name - id: http.server_name
type: string type: string
stability: experimental stability: experimental
deprecated: "Replaced by `server.address`." deprecated: "Replaced by `server.address`."
brief: "Deprecated, use `server.address` instead." brief: "Deprecated, use `server.address` instead."
examples: ['example.com'] examples: ['example.com']
- id: flavor - id: http.flavor
type: type:
allow_custom_values: true
members: members:
- id: http_1_0 - id: http_1_0
value: '1.0' value: '1.0'
@ -108,7 +106,7 @@ groups:
brief: 'Deprecated, use `network.protocol.name` instead.' brief: 'Deprecated, use `network.protocol.name` instead.'
deprecated: "Replaced by `network.protocol.name`." deprecated: "Replaced by `network.protocol.name`."
stability: experimental stability: experimental
- id: user_agent - id: http.user_agent
type: string type: string
brief: 'Deprecated, use `user_agent.original` instead.' brief: 'Deprecated, use `user_agent.original` instead.'
examples: ['CERN-LineMode/2.15 libwww/2.17b3', examples: ['CERN-LineMode/2.15 libwww/2.17b3',

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.ios.deprecated - id: registry.ios.deprecated
prefix: ios
type: attribute_group type: attribute_group
display_name: Deprecated iOS Attributes display_name: Deprecated iOS Attributes
brief: > brief: >
The iOS platform on which the iOS application is running. The iOS platform on which the iOS application is running.
attributes: attributes:
- id: state - id: ios.state
stability: experimental stability: experimental
deprecated: "Moved to a payload field of `device.app.lifecycle`." deprecated: "Moved to a payload field of `device.app.lifecycle`."
note: > note: >
@ -16,7 +15,6 @@ groups:
Deprecated use the `device.app.lifecycle` event definition including Deprecated use the `device.app.lifecycle` event definition including
`ios.state` as a payload field instead. `ios.state` as a payload field instead.
type: type:
allow_custom_values: true
members: members:
- id: active - id: active
value: 'active' value: 'active'

View File

@ -1,80 +1,78 @@
groups: groups:
- id: registry.network.deprecated - id: registry.network.deprecated
prefix: net
type: attribute_group type: attribute_group
display_name: Deprecated Network Attributes display_name: Deprecated Network Attributes
brief: > brief: >
These attributes may be used for any network related operation. These attributes may be used for any network related operation.
attributes: attributes:
- id: sock.peer.name - id: net.sock.peer.name
type: string type: string
deprecated: "Removed." deprecated: "Removed."
stability: experimental stability: experimental
brief: Deprecated, no replacement at this time. brief: Deprecated, no replacement at this time.
examples: ['/var/my.sock'] examples: ['/var/my.sock']
- id: sock.peer.addr - id: net.sock.peer.addr
type: string type: string
deprecated: "Replaced by `network.peer.address`." deprecated: "Replaced by `network.peer.address`."
stability: experimental stability: experimental
brief: Deprecated, use `network.peer.address`. brief: Deprecated, use `network.peer.address`.
examples: ['192.168.0.1'] examples: ['192.168.0.1']
- id: sock.peer.port - id: net.sock.peer.port
type: int type: int
deprecated: "Replaced by `network.peer.port`." deprecated: "Replaced by `network.peer.port`."
stability: experimental stability: experimental
examples: [65531] examples: [65531]
brief: Deprecated, use `network.peer.port`. brief: Deprecated, use `network.peer.port`.
- id: peer.name - id: net.peer.name
type: string type: string
deprecated: "Replaced by `server.address` on client spans and `client.address` on server spans." deprecated: "Replaced by `server.address` on client spans and `client.address` on server spans."
stability: experimental stability: experimental
brief: Deprecated, use `server.address` on client spans and `client.address` on server spans. brief: Deprecated, use `server.address` on client spans and `client.address` on server spans.
examples: ['example.com'] examples: ['example.com']
- id: peer.port - id: net.peer.port
type: int type: int
deprecated: "Replaced by `server.port` on client spans and `client.port` on server spans." deprecated: "Replaced by `server.port` on client spans and `client.port` on server spans."
stability: experimental stability: experimental
brief: Deprecated, use `server.port` on client spans and `client.port` on server spans. brief: Deprecated, use `server.port` on client spans and `client.port` on server spans.
examples: [8080] examples: [8080]
- id: peer.ip - id: net.peer.ip
type: string type: string
deprecated: "Replaced by `network.peer.address`." deprecated: "Replaced by `network.peer.address`."
stability: experimental stability: experimental
brief: Deprecated, use `network.peer.address`. brief: Deprecated, use `network.peer.address`.
examples: '127.0.0.1' examples: '127.0.0.1'
- id: host.name - id: net.host.name
type: string type: string
deprecated: "Replaced by `server.address`." deprecated: "Replaced by `server.address`."
stability: experimental stability: experimental
brief: Deprecated, use `server.address`. brief: Deprecated, use `server.address`.
examples: ['example.com'] examples: ['example.com']
- id: host.ip - id: net.host.ip
type: string type: string
deprecated: "Replaced by `network.local.address`." deprecated: "Replaced by `network.local.address`."
stability: experimental stability: experimental
brief: Deprecated, use `network.local.address`. brief: Deprecated, use `network.local.address`.
examples: '192.168.0.1' examples: '192.168.0.1'
- id: host.port - id: net.host.port
type: int type: int
deprecated: "Replaced by `server.port`." deprecated: "Replaced by `server.port`."
stability: experimental stability: experimental
brief: Deprecated, use `server.port`. brief: Deprecated, use `server.port`.
examples: [8080] examples: [8080]
- id: sock.host.addr - id: net.sock.host.addr
type: string type: string
deprecated: "Replaced by `network.local.address`." deprecated: "Replaced by `network.local.address`."
stability: experimental stability: experimental
brief: Deprecated, use `network.local.address`. brief: Deprecated, use `network.local.address`.
examples: ['/var/my.sock'] examples: ['/var/my.sock']
- id: sock.host.port - id: net.sock.host.port
type: int type: int
deprecated: "Replaced by `network.local.port`." deprecated: "Replaced by `network.local.port`."
stability: experimental stability: experimental
brief: Deprecated, use `network.local.port`. brief: Deprecated, use `network.local.port`.
examples: [8080] examples: [8080]
- id: transport - id: net.transport
type: type:
allow_custom_values: true
members: members:
- id: ip_tcp - id: ip_tcp
value: "ip_tcp" value: "ip_tcp"
@ -101,21 +99,20 @@ groups:
deprecated: "Replaced by `network.transport`." deprecated: "Replaced by `network.transport`."
stability: experimental stability: experimental
brief: Deprecated, use `network.transport`. brief: Deprecated, use `network.transport`.
- id: protocol.name - id: net.protocol.name
type: string type: string
deprecated: "Replaced by `network.protocol.name`." deprecated: "Replaced by `network.protocol.name`."
stability: experimental stability: experimental
brief: Deprecated, use `network.protocol.name`. brief: Deprecated, use `network.protocol.name`.
examples: ['amqp', 'http', 'mqtt'] examples: ['amqp', 'http', 'mqtt']
- id: protocol.version - id: net.protocol.version
type: string type: string
deprecated: "Replaced by `network.protocol.version`." deprecated: "Replaced by `network.protocol.version`."
stability: experimental stability: experimental
brief: Deprecated, use `network.protocol.version`. brief: Deprecated, use `network.protocol.version`.
examples: '3.1.1' examples: '3.1.1'
- id: sock.family - id: net.sock.family
type: type:
allow_custom_values: true
members: members:
- id: inet - id: inet
value: 'inet' value: 'inet'

View File

@ -1,19 +1,18 @@
groups: groups:
- id: registry.otel.library.deprecated - id: registry.otel.library.deprecated
prefix: otel.library
type: attribute_group type: attribute_group
display_name: Deprecated OTel Library Attributes display_name: Deprecated OTel Library Attributes
brief: "Describes deprecated otel.library attributes." brief: "Describes deprecated otel.library attributes."
attributes: attributes:
- id: name - id: otel.library.name
type: string type: string
deprecated: use the `otel.scope.name` attribute. deprecated: use the `otel.scope.name` attribute.
stability: experimental stability: experimental
brief: brief: ""
examples: ['io.opentelemetry.contrib.mongodb'] examples: ['io.opentelemetry.contrib.mongodb']
- id: version - id: otel.library.version
type: string type: string
deprecated: use the `otel.scope.version` attribute. deprecated: use the `otel.scope.version` attribute.
stability: experimental stability: experimental
brief: brief: ""
examples: ['1.0.0'] examples: ['1.0.0']

View File

@ -8,7 +8,6 @@ groups:
brief: "Deprecated, use `cpu.mode` instead." brief: "Deprecated, use `cpu.mode` instead."
deprecated: 'Replaced by `cpu.mode`' deprecated: 'Replaced by `cpu.mode`'
type: type:
allow_custom_values: true
members: members:
- id: system - id: system
value: 'system' value: 'system'

View File

@ -6,7 +6,6 @@ groups:
attributes: attributes:
- id: system.processes.status - id: system.processes.status
type: type:
allow_custom_values: true
members: members:
- id: running - id: running
value: 'running' value: 'running'
@ -26,7 +25,6 @@ groups:
examples: ["running"] examples: ["running"]
- id: system.cpu.state - id: system.cpu.state
type: type:
allow_custom_values: true
members: members:
- id: user - id: user
value: 'user' value: 'user'

View File

@ -1,6 +1,5 @@
groups: groups:
- id: registry.destination - id: registry.destination
prefix: destination
type: attribute_group type: attribute_group
display_name: Destination Attributes display_name: Destination Attributes
brief: > brief: >
@ -11,7 +10,7 @@ groups:
This also covers unidirectional UDP flows and peer-to-peer communication where the This also covers unidirectional UDP flows and peer-to-peer communication where the
"user-facing" surface of the protocol / API doesn't expose a clear notion of client and server. "user-facing" surface of the protocol / API doesn't expose a clear notion of client and server.
attributes: attributes:
- id: address - id: destination.address
type: string type: string
stability: experimental stability: experimental
brief: "Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name." brief: "Destination address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name."
@ -19,7 +18,7 @@ groups:
When observed from the source side, and when communicating through an intermediary, `destination.address` SHOULD represent When observed from the source side, and when communicating through an intermediary, `destination.address` SHOULD represent
the destination address behind any intermediaries, for example proxies, if it's available. the destination address behind any intermediaries, for example proxies, if it's available.
examples: ['destination.example.com', '10.1.2.80', '/tmp/my.sock'] examples: ['destination.example.com', '10.1.2.80', '/tmp/my.sock']
- id: port - id: destination.port
type: int type: int
stability: experimental stability: experimental
brief: 'Destination port number' brief: 'Destination port number'

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.device - id: registry.device
prefix: device
type: attribute_group type: attribute_group
display_name: Device Attributes display_name: Device Attributes
brief: > brief: >
Describes device attributes. Describes device attributes.
attributes: attributes:
- id: id - id: device.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -21,7 +20,7 @@ groups:
Caution should be taken when storing personal data or anything which can identify a user. GDPR and Caution should be taken when storing personal data or anything which can identify a user. GDPR and
data protection laws may apply, ensure you do your own due diligence. data protection laws may apply, ensure you do your own due diligence.
examples: ['2ab2916d-a51f-4ac8-80ee-45ac31a28092'] examples: ['2ab2916d-a51f-4ac8-80ee-45ac31a28092']
- id: manufacturer - id: device.manufacturer
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -30,7 +29,7 @@ groups:
The Android OS provides this field via [Build](https://developer.android.com/reference/android/os/Build#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`. iOS apps SHOULD hardcode the value `Apple`.
examples: ['Apple', 'Samsung'] examples: ['Apple', 'Samsung']
- id: model.identifier - id: device.model.identifier
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -40,7 +39,7 @@ groups:
the model identifier rather than the market or consumer-friendly name the model identifier rather than the market or consumer-friendly name
of the device. of the device.
examples: ['iPhone3,4', 'SM-G920F'] examples: ['iPhone3,4', 'SM-G920F']
- id: model.name - id: device.model.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,14 +1,12 @@
groups: groups:
- id: registry.disk - id: registry.disk
prefix: disk
type: attribute_group type: attribute_group
display_name: Disk Attributes display_name: Disk Attributes
brief: > brief: >
These attributes may be used for any disk related operation. These attributes may be used for any disk related operation.
attributes: attributes:
- id: io.direction - id: disk.io.direction
type: type:
allow_custom_values: false
members: members:
- id: read - id: read
value: 'read' value: 'read'

View File

@ -2,11 +2,10 @@ groups:
- id: registry.dns - id: registry.dns
type: attribute_group type: attribute_group
display_name: DNS Attributes display_name: DNS Attributes
prefix: dns
brief: > brief: >
This document defines the shared attributes used to report a DNS query. This document defines the shared attributes used to report a DNS query.
attributes: attributes:
- id: question.name - id: dns.question.name
type: string type: string
stability: experimental stability: experimental
brief: The name being queried. brief: The name being queried.

View File

@ -2,16 +2,14 @@ groups:
- id: registry.error - id: registry.error
type: attribute_group type: attribute_group
display_name: Error Attributes display_name: Error Attributes
prefix: error
brief: > brief: >
This document defines the shared attributes used to report an error. This document defines the shared attributes used to report an error.
attributes: attributes:
- id: type - id: error.type
stability: stable stability: stable
brief: > brief: >
Describes a class of error the operation ended with. Describes a class of error the operation ended with.
type: type:
allow_custom_values: true
members: members:
- id: other - id: other
value: "_OTHER" value: "_OTHER"

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.event - id: registry.event
prefix: event
type: attribute_group type: attribute_group
display_name: Event Attributes display_name: Event Attributes
brief: > brief: >
Attributes for Events represented using Log Records. Attributes for Events represented using Log Records.
attributes: attributes:
- id: name - id: event.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -2,12 +2,11 @@ groups:
- id: registry.exception - id: registry.exception
type: attribute_group type: attribute_group
display_name: Exception Attributes display_name: Exception Attributes
prefix: exception
brief: > brief: >
This document defines the shared attributes used to This document defines the shared attributes used to
report a single exception associated with a span or log. report a single exception associated with a span or log.
attributes: attributes:
- id: type - id: exception.type
type: string type: string
stability: stable stability: stable
brief: > brief: >
@ -15,12 +14,12 @@ groups:
The dynamic type of the exception should be preferred over the static type The dynamic type of the exception should be preferred over the static type
in languages that support it. in languages that support it.
examples: ["java.net.ConnectException", "OSError"] examples: ["java.net.ConnectException", "OSError"]
- id: message - id: exception.message
type: string type: string
stability: stable stability: stable
brief: The exception message. brief: The exception message.
examples: ["Division by zero", "Can't convert 'int' object to str implicitly"] examples: ["Division by zero", "Can't convert 'int' object to str implicitly"]
- id: stacktrace - id: exception.stacktrace
type: string type: string
stability: stable stability: stable
brief: > brief: >
@ -30,7 +29,7 @@ groups:
at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n
at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n
at com.example.GenerateTrace.main(GenerateTrace.java:5)' at com.example.GenerateTrace.main(GenerateTrace.java:5)'
- id: escaped - id: exception.escaped
type: boolean type: boolean
stability: stable stability: stable
brief: > brief: >

View File

@ -3,9 +3,8 @@ groups:
brief: FaaS attributes brief: FaaS attributes
type: attribute_group type: attribute_group
display_name: Function as a Service Attributes display_name: Function as a Service Attributes
prefix: faas
attributes: attributes:
- id: name - id: faas.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -28,7 +27,7 @@ groups:
app can host multiple functions that would usually share app can host multiple functions that would usually share
a TracerProvider (see also the `cloud.resource_id` attribute). a TracerProvider (see also the `cloud.resource_id` attribute).
examples: ['my-function', 'myazurefunctionapp/some-function-name'] examples: ['my-function', 'myazurefunctionapp/some-function-name']
- id: version - id: faas.version
type: string type: string
stability: experimental stability: experimental
brief: The immutable version of the function being executed. brief: The immutable version of the function being executed.
@ -43,7 +42,7 @@ groups:
[`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically). [`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically).
* **Azure Functions:** Not applicable. Do not set this attribute. * **Azure Functions:** Not applicable. Do not set this attribute.
examples: ['26', 'pinkfroid-00002'] examples: ['26', 'pinkfroid-00002']
- id: instance - id: faas.instance
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -52,7 +51,7 @@ groups:
note: > note: >
* **AWS Lambda:** Use the (full) log stream name. * **AWS Lambda:** Use the (full) log stream name.
examples: ['2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de'] examples: ['2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de']
- id: max_memory - id: faas.max_memory
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
@ -63,12 +62,11 @@ groups:
On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE`
provides this information (which must be multiplied by 1,048,576). provides this information (which must be multiplied by 1,048,576).
examples: 134217728 examples: 134217728
- id: trigger - id: faas.trigger
stability: experimental stability: experimental
brief: > brief: >
Type of the trigger which caused this function invocation. Type of the trigger which caused this function invocation.
type: type:
allow_custom_values: false
members: members:
- id: datasource - id: datasource
value: 'datasource' value: 'datasource'
@ -90,7 +88,7 @@ groups:
value: 'other' value: 'other'
brief: 'If none of the others apply' brief: 'If none of the others apply'
stability: experimental stability: experimental
- id: invoked_name - id: faas.invoked_name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -99,10 +97,9 @@ groups:
SHOULD be equal to the `faas.name` resource attribute of the SHOULD be equal to the `faas.name` resource attribute of the
invoked function. invoked function.
examples: 'my-function' examples: 'my-function'
- id: invoked_provider - id: faas.invoked_provider
stability: experimental stability: experimental
type: type:
allow_custom_values: true
members: members:
- id: 'alibaba_cloud' - id: 'alibaba_cloud'
value: 'alibaba_cloud' value: 'alibaba_cloud'
@ -129,7 +126,7 @@ groups:
note: > note: >
SHOULD be equal to the `cloud.provider` resource attribute of the SHOULD be equal to the `cloud.provider` resource attribute of the
invoked function. invoked function.
- id: invoked_region - id: faas.invoked_region
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -138,13 +135,13 @@ groups:
SHOULD be equal to the `cloud.region` resource attribute of the SHOULD be equal to the `cloud.region` resource attribute of the
invoked function. invoked function.
examples: 'eu-central-1' examples: 'eu-central-1'
- id: invocation_id - id: faas.invocation_id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The invocation ID of the current function invocation. The invocation ID of the current function invocation.
examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28' examples: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28'
- id: time - id: faas.time
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -152,20 +149,20 @@ groups:
[ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)
format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime).
examples: "2020-01-23T13:47:06Z" examples: "2020-01-23T13:47:06Z"
- id: cron - id: faas.cron
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
A string containing the schedule period as A string containing the schedule period as
[Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm).
examples: "0/5 * * * ? *" examples: "0/5 * * * ? *"
- id: coldstart - id: faas.coldstart
type: boolean type: boolean
stability: experimental stability: experimental
brief: > brief: >
A boolean that is true if the serverless function is executed for the A boolean that is true if the serverless function is executed for the
first time (aka cold-start). first time (aka cold-start).
- id: document.collection - id: faas.document.collection
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -173,10 +170,9 @@ groups:
For example, in Cloud Storage or S3 corresponds to the bucket name, For example, in Cloud Storage or S3 corresponds to the bucket name,
and in Cosmos DB to the database name. and in Cosmos DB to the database name.
examples: ['myBucketName', 'myDbName'] examples: ['myBucketName', 'myDbName']
- id: document.operation - id: faas.document.operation
stability: experimental stability: experimental
type: type:
allow_custom_values: true
members: members:
- id: insert - id: insert
value: 'insert' value: 'insert'
@ -191,7 +187,7 @@ groups:
brief: 'When an object is deleted.' brief: 'When an object is deleted.'
stability: experimental stability: experimental
brief: 'Describes the type of the operation that was performed on the data.' brief: 'Describes the type of the operation that was performed on the data.'
- id: document.time - id: faas.document.time
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -199,7 +195,7 @@ groups:
[ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)
format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime).
examples: "2020-01-23T13:47:06Z" examples: "2020-01-23T13:47:06Z"
- id: document.name - id: faas.document.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,22 +1,21 @@
groups: groups:
- id: registry.feature_flag - id: registry.feature_flag
prefix: feature_flag
type: attribute_group type: attribute_group
display_name: Feature Flag Attributes display_name: Feature Flag Attributes
brief: > brief: >
This document defines attributes for Feature Flags. This document defines attributes for Feature Flags.
attributes: attributes:
- id: key - id: feature_flag.key
type: string type: string
stability: experimental stability: experimental
brief: The unique identifier of the feature flag. brief: The unique identifier of the feature flag.
examples: ["logo-color"] examples: ["logo-color"]
- id: provider_name - id: feature_flag.provider_name
type: string type: string
stability: experimental stability: experimental
brief: The name of the service provider that performs the flag evaluation. brief: The name of the service provider that performs the flag evaluation.
examples: ["Flag Manager"] examples: ["Flag Manager"]
- id: variant - id: feature_flag.variant
type: string type: string
stability: experimental stability: experimental
examples: ["red", "true", "on"] examples: ["red", "true", "on"]

View File

@ -1,17 +1,16 @@
groups: groups:
- id: registry.file - id: registry.file
prefix: file
type: attribute_group type: attribute_group
display_name: File Attributes display_name: File Attributes
brief: "Describes file attributes." brief: "Describes file attributes."
attributes: attributes:
- id: directory - id: file.directory
type: string type: string
brief: > brief: >
Directory where the file is located. It should include the drive letter, when appropriate. Directory where the file is located. It should include the drive letter, when appropriate.
stability: experimental stability: experimental
examples: ['/home/user', 'C:\Program Files\MyApp'] examples: ['/home/user', 'C:\Program Files\MyApp']
- id: extension - id: file.extension
type: string type: string
brief: > brief: >
File extension, excluding the leading dot. File extension, excluding the leading dot.
@ -20,19 +19,19 @@ groups:
note: > note: >
When the file name has multiple extensions (example.tar.gz), only the last one should When the file name has multiple extensions (example.tar.gz), only the last one should
be captured ("gz", not "tar.gz"). be captured ("gz", not "tar.gz").
- id: name - id: file.name
type: string type: string
brief: > brief: >
Name of the file including the extension, without the directory. Name of the file including the extension, without the directory.
stability: experimental stability: experimental
examples: ['example.png'] examples: ['example.png']
- id: path - id: file.path
type: string type: string
brief: > brief: >
Full path to the file, including the file name. It should include the drive letter, when appropriate. Full path to the file, including the file name. It should include the drive letter, when appropriate.
stability: experimental stability: experimental
examples: ['/home/alice/example.png', 'C:\Program Files\MyApp\myapp.exe'] examples: ['/home/alice/example.png', 'C:\Program Files\MyApp\myapp.exe']
- id: size - id: file.size
type: int type: int
brief: > brief: >
File size in bytes. File size in bytes.

View File

@ -1,17 +1,11 @@
groups: groups:
- id: registry.gcp
prefix: gcp
type: attribute_group
display_name: GCP Attributes
brief: Attributes for Google Cloud
- id: registry.gcp.client - id: registry.gcp.client
prefix: gcp.client
type: attribute_group type: attribute_group
display_name: GCP Client Attributes display_name: GCP Client Attributes
brief: > brief: >
Attributes for Google Cloud client libraries. Attributes for Google Cloud client libraries.
attributes: attributes:
- id: service - id: gcp.client.service
type: string type: string
stability: experimental stability: experimental
brief: Identifies the Google Cloud service for which the official client library is intended. brief: Identifies the Google Cloud service for which the official client library is intended.
@ -22,13 +16,12 @@ groups:
example, 'foo.googleapis.com' should result in a value of 'foo'. example, 'foo.googleapis.com' should result in a value of 'foo'.
examples: ['appengine', 'run', 'firestore', 'alloydb', 'spanner'] examples: ['appengine', 'run', 'firestore', 'alloydb', 'spanner']
- id: registry.gcp.cloud_run - id: registry.gcp.cloud_run
prefix: gcp.cloud_run
type: attribute_group type: attribute_group
display_name: GCP - Google Cloud Run Attributes display_name: GCP - Google Cloud Run Attributes
brief: > brief: >
This document defines attributes for Google Cloud Run. This document defines attributes for Google Cloud Run.
attributes: attributes:
- id: job.execution - id: gcp.cloud_run.job.execution
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -38,7 +31,7 @@ groups:
[`CLOUD_RUN_EXECUTION`](https://cloud.google.com/run/docs/container-contract#jobs-env-vars) [`CLOUD_RUN_EXECUTION`](https://cloud.google.com/run/docs/container-contract#jobs-env-vars)
environment variable. environment variable.
examples: ['job-name-xxxx', 'sample-job-mdw84'] examples: ['job-name-xxxx', 'sample-job-mdw84']
- id: job.task_index - id: gcp.cloud_run.job.task_index
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
@ -47,13 +40,12 @@ groups:
environment variable. environment variable.
examples: [0, 1] examples: [0, 1]
- id: registry.gcp.gce - id: registry.gcp.gce
prefix: gcp.gce
type: attribute_group type: attribute_group
display_name: GCP - Google Compute Engine (GCE) Attributes display_name: GCP - Google Compute Engine (GCE) Attributes
brief: > brief: >
This document defines attributes for Google Compute Engine (GCE). This document defines attributes for Google Compute Engine (GCE).
attributes: attributes:
- id: instance.name - id: gcp.gce.instance.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -64,7 +56,7 @@ groups:
DNS DNS
name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names). name](https://cloud.google.com/compute/docs/internal-dns#instance-fully-qualified-domain-names).
examples: ['instance-1', 'my-vm-name'] examples: ['instance-1', 'my-vm-name']
- id: instance.hostname - id: gcp.gce.instance.hostname
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.gen_ai - id: registry.gen_ai
prefix: gen_ai
type: attribute_group type: attribute_group
display_name: GenAI Attributes display_name: GenAI Attributes
brief: > brief: >
This document defines the attributes used to describe telemetry in the context of Generative Artificial Intelligence (GenAI) Models requests and responses. This document defines the attributes used to describe telemetry in the context of Generative Artificial Intelligence (GenAI) Models requests and responses.
attributes: attributes:
- id: system - id: gen_ai.system
stability: experimental stability: experimental
type: type:
members: members:
@ -38,73 +37,72 @@ groups:
For custom model, a custom friendly name SHOULD be used. For custom model, a custom friendly name SHOULD be used.
If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`. If none of these options apply, the `gen_ai.system` SHOULD be set to `_OTHER`.
examples: 'openai' examples: 'openai'
- id: request.model - id: gen_ai.request.model
stability: experimental stability: experimental
type: string type: string
brief: The name of the GenAI model a request is being made to. brief: The name of the GenAI model a request is being made to.
examples: 'gpt-4' examples: 'gpt-4'
- id: request.max_tokens - id: gen_ai.request.max_tokens
stability: experimental stability: experimental
type: int type: int
brief: The maximum number of tokens the model generates for a request. brief: The maximum number of tokens the model generates for a request.
examples: [100] examples: [100]
- id: request.temperature - id: gen_ai.request.temperature
stability: experimental stability: experimental
type: double type: double
brief: The temperature setting for the GenAI request. brief: The temperature setting for the GenAI request.
examples: [0.0] examples: [0.0]
- id: request.top_p - id: gen_ai.request.top_p
stability: experimental stability: experimental
type: double type: double
brief: The top_p sampling setting for the GenAI request. brief: The top_p sampling setting for the GenAI request.
examples: [1.0] examples: [1.0]
tag: llm-generic-request - id: gen_ai.request.top_k
- id: request.top_k
stability: experimental stability: experimental
type: double type: double
brief: The top_k sampling setting for the GenAI request. brief: The top_k sampling setting for the GenAI request.
examples: [1.0] examples: [1.0]
- id: request.stop_sequences - id: gen_ai.request.stop_sequences
stability: experimental stability: experimental
type: string[] type: string[]
brief: List of sequences that the model will use to stop generating further tokens. brief: List of sequences that the model will use to stop generating further tokens.
examples: ['forest', 'lived'] examples: ['forest', 'lived']
- id: request.frequency_penalty - id: gen_ai.request.frequency_penalty
stability: experimental stability: experimental
type: double type: double
brief: The frequency penalty setting for the GenAI request. brief: The frequency penalty setting for the GenAI request.
examples: [0.1] examples: [0.1]
- id: request.presence_penalty - id: gen_ai.request.presence_penalty
stability: experimental stability: experimental
type: double type: double
brief: The presence penalty setting for the GenAI request. brief: The presence penalty setting for the GenAI request.
examples: [0.1] examples: [0.1]
- id: response.id - id: gen_ai.response.id
stability: experimental stability: experimental
type: string type: string
brief: The unique identifier for the completion. brief: The unique identifier for the completion.
examples: ['chatcmpl-123'] examples: ['chatcmpl-123']
- id: response.model - id: gen_ai.response.model
stability: experimental stability: experimental
type: string type: string
brief: The name of the model that generated the response. brief: The name of the model that generated the response.
examples: ['gpt-4-0613'] examples: ['gpt-4-0613']
- id: response.finish_reasons - id: gen_ai.response.finish_reasons
stability: experimental stability: experimental
type: string[] type: string[]
brief: Array of reasons the model stopped generating tokens, corresponding to each generation received. brief: Array of reasons the model stopped generating tokens, corresponding to each generation received.
examples: ['stop'] examples: ['stop']
- id: usage.input_tokens - id: gen_ai.usage.input_tokens
stability: experimental stability: experimental
type: int type: int
brief: The number of tokens used in the GenAI input (prompt). brief: The number of tokens used in the GenAI input (prompt).
examples: [100] examples: [100]
- id: usage.output_tokens - id: gen_ai.usage.output_tokens
stability: experimental stability: experimental
type: int type: int
brief: The number of tokens used in the GenAI response (completion). brief: The number of tokens used in the GenAI response (completion).
examples: [180] examples: [180]
- id: token.type - id: gen_ai.token.type
stability: experimental stability: experimental
type: type:
members: members:
@ -118,19 +116,19 @@ groups:
brief: 'Output tokens (completion, response, etc.)' brief: 'Output tokens (completion, response, etc.)'
brief: The type of token being counted. brief: The type of token being counted.
examples: ['input', 'output'] examples: ['input', 'output']
- id: prompt - id: gen_ai.prompt
stability: experimental stability: experimental
type: string type: string
brief: The full prompt sent to the GenAI model. brief: The full prompt sent to the GenAI model.
note: It's RECOMMENDED to format prompts as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) note: It's RECOMMENDED to format prompts as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation)
examples: ["[{'role': 'user', 'content': 'What is the capital of France?'}]"] examples: ["[{'role': 'user', 'content': 'What is the capital of France?'}]"]
- id: completion - id: gen_ai.completion
stability: experimental stability: experimental
type: string type: string
brief: The full response received from the GenAI model. brief: The full response received from the GenAI model.
note: It's RECOMMENDED to format completions as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation) note: It's RECOMMENDED to format completions as JSON string matching [OpenAI messages format](https://platform.openai.com/docs/guides/text-generation)
examples: ["[{'role': 'assistant', 'content': 'The capital of France is Paris.'}]"] examples: ["[{'role': 'assistant', 'content': 'The capital of France is Paris.'}]"]
- id: operation.name - id: gen_ai.operation.name
stability: experimental stability: experimental
type: type:
members: members:

View File

@ -2,14 +2,12 @@ groups:
- id: registry.go - id: registry.go
type: attribute_group type: attribute_group
display_name: Go Attributes display_name: Go Attributes
prefix: go
brief: > brief: >
This document defines Go related attributes. This document defines Go related attributes.
attributes: attributes:
- id: memory.type - id: go.memory.type
stability: experimental stability: experimental
type: type:
allow_custom_values: false
members: members:
- id: stack - id: stack
value: 'stack' value: 'stack'

View File

@ -1,20 +1,18 @@
groups: groups:
- id: registry.graphql - id: registry.graphql
prefix: graphql
type: attribute_group type: attribute_group
display_name: GraphQL Attributes display_name: GraphQL Attributes
brief: 'This document defines attributes for GraphQL.' brief: 'This document defines attributes for GraphQL.'
attributes: attributes:
- id: operation.name - id: graphql.operation.name
brief: "The name of the operation being executed." brief: "The name of the operation being executed."
type: string type: string
stability: experimental stability: experimental
examples: 'findBookById' examples: 'findBookById'
- id: operation.type - id: graphql.operation.type
brief: "The type of the operation being executed." brief: "The type of the operation being executed."
stability: experimental stability: experimental
type: type:
allow_custom_values: false
members: members:
- id: query - id: query
value: "query" value: "query"
@ -29,7 +27,7 @@ groups:
brief: "GraphQL subscription" brief: "GraphQL subscription"
stability: experimental stability: experimental
examples: ['query', 'mutation', 'subscription'] examples: ['query', 'mutation', 'subscription']
- id: document - id: graphql.document
brief: "The GraphQL document being executed." brief: "The GraphQL document being executed."
type: string type: string
stability: experimental stability: experimental

View File

@ -1,24 +1,23 @@
groups: groups:
- id: registry.heroku - id: registry.heroku
prefix: heroku
type: attribute_group type: attribute_group
display_name: Heroku Attributes display_name: Heroku Attributes
brief: > brief: >
This document defines attributes for the Android platform on which the Android application is running. This document defines attributes for the Android platform on which the Android application is running.
attributes: attributes:
- id: release.creation_timestamp - id: heroku.release.creation_timestamp
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Time and date the release was created Time and date the release was created
examples: [ '2022-10-23T18:00:42Z' ] examples: [ '2022-10-23T18:00:42Z' ]
- id: release.commit - id: heroku.release.commit
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Commit hash for the current release Commit hash for the current release
examples: [ 'e6134959463efd8966b20e75b913cafe3f5ec' ] examples: [ 'e6134959463efd8966b20e75b913cafe3f5ec' ]
- id: app.id - id: heroku.app.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.host - id: registry.host
prefix: host
type: attribute_group type: attribute_group
display_name: Host Attributes display_name: Host Attributes
brief: > brief: >
A host is defined as a computing instance. For example, physical servers, virtual machines, switches or disk array. A host is defined as a computing instance. For example, physical servers, virtual machines, switches or disk array.
attributes: attributes:
- id: id - id: host.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -14,7 +13,7 @@ groups:
For non-containerized systems, this should be the `machine-id`. See the table below for For non-containerized systems, this should be the `machine-id`. See the table below for
the sources to use to determine the `machine-id` based on operating system. the sources to use to determine the `machine-id` based on operating system.
examples: ['fdbf79e8af94cb7f9e8df36789187052'] examples: ['fdbf79e8af94cb7f9e8df36789187052']
- id: name - id: host.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -22,15 +21,14 @@ groups:
command returns, or the fully qualified hostname, or another name command returns, or the fully qualified hostname, or another name
specified by the user. specified by the user.
examples: ['opentelemetry-test'] examples: ['opentelemetry-test']
- id: type - id: host.type
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Type of host. For Cloud, this must be the machine type. Type of host. For Cloud, this must be the machine type.
examples: ['n1-standard-1'] examples: ['n1-standard-1']
- id: arch - id: host.arch
type: type:
allow_custom_values: true
members: members:
- id: amd64 - id: amd64
value: 'amd64' value: 'amd64'
@ -67,26 +65,26 @@ groups:
stability: experimental stability: experimental
brief: > brief: >
The CPU architecture the host system is running on. The CPU architecture the host system is running on.
- id: image.name - id: host.image.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Name of the VM image or OS install the host was instantiated from. Name of the VM image or OS install the host was instantiated from.
examples: ['infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905'] examples: ['infra-ami-eks-worker-node-7d4ec78312', 'CentOS-8-x86_64-1905']
- id: image.id - id: host.image.id
stability: experimental stability: experimental
type: string type: string
brief: > brief: >
VM image ID or host OS image ID. For Cloud, this value is from the provider. VM image ID or host OS image ID. For Cloud, this value is from the provider.
examples: ['ami-07b06b442921831e5'] examples: ['ami-07b06b442921831e5']
- id: image.version - id: host.image.version
stability: experimental stability: experimental
type: string type: string
brief: > brief: >
The version string of the VM image or host OS as defined in The version string of the VM image or host OS as defined in
[Version Attributes](/docs/resource/README.md#version-attributes). [Version Attributes](/docs/resource/README.md#version-attributes).
examples: ['0.1'] examples: ['0.1']
- id: ip - id: host.ip
stability: experimental stability: experimental
type: string[] type: string[]
brief: > brief: >
@ -95,7 +93,7 @@ groups:
IPv4 Addresses MUST be specified in dotted-quad notation. IPv6 addresses IPv4 Addresses MUST be specified in dotted-quad notation. IPv6 addresses
MUST be specified in the [RFC 5952](https://www.rfc-editor.org/rfc/rfc5952.html) format. MUST be specified in the [RFC 5952](https://www.rfc-editor.org/rfc/rfc5952.html) format.
examples: ["192.168.1.140", "fe80::abc2:4a28:737a:609e"] examples: ["192.168.1.140", "fe80::abc2:4a28:737a:609e"]
- id: mac - id: host.mac
stability: experimental stability: experimental
type: string[] type: string[]
brief: > brief: >
@ -104,7 +102,7 @@ groups:
MAC Addresses MUST be represented in [IEEE RA hexadecimal form](https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf): MAC Addresses MUST be represented in [IEEE RA hexadecimal form](https://standards.ieee.org/wp-content/uploads/import/documents/tutorials/eui.pdf):
as hyphen-separated octets in uppercase hexadecimal form from most to least significant. as hyphen-separated octets in uppercase hexadecimal form from most to least significant.
examples: ['AC-DE-48-23-45-67', 'AC-DE-48-23-45-67-01-9F'] examples: ['AC-DE-48-23-45-67', 'AC-DE-48-23-45-67-01-9F']
- id: cpu.vendor.id - id: host.cpu.vendor.id
stability: experimental stability: experimental
type: string type: string
brief: > brief: >
@ -113,32 +111,32 @@ groups:
[CPUID](https://wiki.osdev.org/CPUID) command returns the vendor ID string in EBX, EDX and ECX registers. [CPUID](https://wiki.osdev.org/CPUID) command returns the vendor ID string in EBX, EDX and ECX registers.
Writing these to memory in this order results in a 12-character string. Writing these to memory in this order results in a 12-character string.
examples: [ 'GenuineIntel' ] examples: [ 'GenuineIntel' ]
- id: cpu.family - id: host.cpu.family
stability: experimental stability: experimental
type: string type: string
brief: > brief: >
Family or generation of the CPU. Family or generation of the CPU.
examples: [ '6', 'PA-RISC 1.1e' ] examples: [ '6', 'PA-RISC 1.1e' ]
- id: cpu.model.id - id: host.cpu.model.id
stability: experimental stability: experimental
type: string type: string
brief: > brief: >
Model identifier. It provides more granular information about the CPU, distinguishing it from Model identifier. It provides more granular information about the CPU, distinguishing it from
other CPUs within the same family. other CPUs within the same family.
examples: [ '6', '9000/778/B180L' ] examples: [ '6', '9000/778/B180L' ]
- id: cpu.model.name - id: host.cpu.model.name
stability: experimental stability: experimental
type: string type: string
brief: > brief: >
Model designation of the processor. Model designation of the processor.
examples: [ '11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz' ] examples: [ '11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz' ]
- id: cpu.stepping - id: host.cpu.stepping
stability: experimental stability: experimental
type: string type: string
brief: > brief: >
Stepping or core revisions. Stepping or core revisions.
examples: ["1", "r1p1"] examples: ["1", "r1p1"]
- id: cpu.cache.l2.size - id: host.cpu.cache.l2.size
stability: experimental stability: experimental
type: int type: int
brief: > brief: >

View File

@ -1,11 +1,10 @@
groups: groups:
- id: registry.http - id: registry.http
prefix: http
type: attribute_group type: attribute_group
display_name: HTTP Attributes display_name: HTTP Attributes
brief: 'This document defines semantic convention attributes in the HTTP namespace.' brief: 'This document defines semantic convention attributes in the HTTP namespace.'
attributes: attributes:
- id: request.body.size - id: http.request.body.size
type: int type: int
brief: > brief: >
The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and The size of the request payload body in bytes. This is the number of bytes transferred excluding headers and
@ -13,7 +12,7 @@ groups:
header. For requests using transport encoding, this should be the compressed size. header. For requests using transport encoding, this should be the compressed size.
examples: 3495 examples: 3495
stability: experimental # this should not be marked stable with other HTTP attributes stability: experimental # this should not be marked stable with other HTTP attributes
- id: request.header - id: http.request.header
stability: stable stability: stable
type: template[string[]] type: template[string[]]
brief: > brief: >
@ -29,10 +28,9 @@ groups:
or a single-item array containing a possibly comma-concatenated string, depending on the way or a single-item array containing a possibly comma-concatenated string, depending on the way
the HTTP library provides access to headers. the HTTP library provides access to headers.
examples: ['http.request.header.content-type=["application/json"]', 'http.request.header.x-forwarded-for=["1.2.3.4", "1.2.3.5"]'] examples: ['http.request.header.content-type=["application/json"]', 'http.request.header.x-forwarded-for=["1.2.3.4", "1.2.3.5"]']
- id: request.method - id: http.request.method
stability: stable stability: stable
type: type:
allow_custom_values: true
members: members:
- id: connect - id: connect
value: "CONNECT" value: "CONNECT"
@ -91,12 +89,12 @@ groups:
HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly. HTTP method names are case-sensitive and `http.request.method` attribute value MUST match a known HTTP method name exactly.
Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent. Instrumentations for specific web frameworks that consider HTTP methods to be case insensitive, SHOULD populate a canonical equivalent.
Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value. Tracing instrumentations that do so, MUST also set `http.request.method_original` to the original value.
- id: request.method_original - id: http.request.method_original
stability: stable stability: stable
type: string type: string
brief: Original HTTP method sent by the client in the request line. brief: Original HTTP method sent by the client in the request line.
examples: ["GeT", "ACL", "foo"] examples: ["GeT", "ACL", "foo"]
- id: request.resend_count - id: http.request.resend_count
stability: stable stability: stable
type: int type: int
brief: > brief: >
@ -106,14 +104,14 @@ groups:
was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues, was the cause of the resending (e.g. redirection, authorization failure, 503 Server Unavailable, network issues,
or any other). or any other).
examples: 3 examples: 3
- id: request.size - id: http.request.size
type: int type: int
brief: > brief: >
The total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1), The total size of the request in bytes. This should be the total number of bytes sent over the wire, including the request line (HTTP/1.1),
framing (HTTP/2 and HTTP/3), headers, and request body if any. framing (HTTP/2 and HTTP/3), headers, and request body if any.
examples: 1437 examples: 1437
stability: experimental stability: experimental
- id: response.body.size - id: http.response.body.size
type: int type: int
brief: > brief: >
The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and The size of the response payload body in bytes. This is the number of bytes transferred excluding headers and
@ -121,7 +119,7 @@ groups:
header. For requests using transport encoding, this should be the compressed size. header. For requests using transport encoding, this should be the compressed size.
examples: 3495 examples: 3495
stability: experimental # this should not be marked stable with other HTTP attributes stability: experimental # this should not be marked stable with other HTTP attributes
- id: response.header - id: http.response.header
stability: stable stability: stable
type: template[string[]] type: template[string[]]
brief: > brief: >
@ -136,19 +134,19 @@ groups:
or a single-item array containing a possibly comma-concatenated string, depending on the way or a single-item array containing a possibly comma-concatenated string, depending on the way
the HTTP library provides access to headers. the HTTP library provides access to headers.
examples: ['http.response.header.content-type=["application/json"]', 'http.response.header.my-custom-header=["abc", "def"]'] examples: ['http.response.header.content-type=["application/json"]', 'http.response.header.my-custom-header=["abc", "def"]']
- id: response.size - id: http.response.size
type: int type: int
brief: > brief: >
The total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1), The total size of the response in bytes. This should be the total number of bytes sent over the wire, including the status line (HTTP/1.1),
framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any. framing (HTTP/2 and HTTP/3), headers, and response body and trailers if any.
examples: 1437 examples: 1437
stability: experimental stability: experimental
- id: response.status_code - id: http.response.status_code
stability: stable stability: stable
type: int type: int
brief: '[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).' brief: '[HTTP response status code](https://tools.ietf.org/html/rfc7231#section-6).'
examples: [200] examples: [200]
- id: route - id: http.route
stability: stable stability: stable
type: string type: string
brief: > brief: >
@ -158,9 +156,8 @@ groups:
MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it. MUST NOT be populated when this is not supported by the HTTP server framework as the route attribute should have low-cardinality and the URI path can NOT substitute it.
SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one. SHOULD include the [application root](/docs/http/http-spans.md#http-server-definitions) if there is one.
- id: connection.state - id: http.connection.state
type: type:
allow_custom_values: true
members: members:
- id: active - id: active
value: "active" value: "active"

View File

@ -2,11 +2,10 @@ groups:
- id: registry.jvm - id: registry.jvm
type: attribute_group type: attribute_group
display_name: Java Virtual Machine (JVM) Attributes display_name: Java Virtual Machine (JVM) Attributes
prefix: jvm
brief: > brief: >
This document defines Java Virtual machine related attributes. This document defines Java Virtual machine related attributes.
attributes: attributes:
- id: gc.action - id: jvm.gc.action
stability: stable stability: stable
type: string type: string
brief: Name of the garbage collector action. brief: Name of the garbage collector action.
@ -14,7 +13,7 @@ groups:
note: > note: >
Garbage collector action is generally obtained via Garbage collector action is generally obtained via
[GarbageCollectionNotificationInfo#getGcAction()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction()). [GarbageCollectionNotificationInfo#getGcAction()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction()).
- id: gc.name - id: jvm.gc.name
stability: stable stability: stable
type: string type: string
brief: Name of the garbage collector. brief: Name of the garbage collector.
@ -22,10 +21,9 @@ groups:
note: > note: >
Garbage collector name is generally obtained via Garbage collector name is generally obtained via
[GarbageCollectionNotificationInfo#getGcName()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName()). [GarbageCollectionNotificationInfo#getGcName()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName()).
- id: memory.type - id: jvm.memory.type
stability: stable stability: stable
type: type:
allow_custom_values: false
members: members:
- id: heap - id: heap
value: 'heap' value: 'heap'
@ -37,7 +35,7 @@ groups:
stability: stable stability: stable
brief: The type of memory. brief: The type of memory.
examples: ["heap", "non_heap"] examples: ["heap", "non_heap"]
- id: memory.pool.name - id: jvm.memory.pool.name
stability: stable stability: stable
type: string type: string
brief: Name of the memory pool. brief: Name of the memory pool.
@ -45,16 +43,15 @@ groups:
note: > note: >
Pool names are generally obtained via Pool names are generally obtained via
[MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()). [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName()).
- id: thread.daemon - id: jvm.thread.daemon
stability: stable stability: stable
type: boolean type: boolean
brief: "Whether the thread is daemon or not." brief: "Whether the thread is daemon or not."
- id: thread.state - id: jvm.thread.state
stability: stable stability: stable
brief: "State of the thread." brief: "State of the thread."
examples: ["runnable", "blocked"] examples: ["runnable", "blocked"]
type: type:
allow_custom_values: false
members: members:
- id: new - id: new
value: 'new' value: 'new'
@ -80,7 +77,7 @@ groups:
value: 'terminated' value: 'terminated'
brief: 'A thread that has exited is in this state.' brief: 'A thread that has exited is in this state.'
stability: stable stability: stable
- id: buffer.pool.name - id: jvm.buffer.pool.name
type: string type: string
stability: experimental stability: experimental
brief: Name of the buffer pool. brief: Name of the buffer pool.

View File

@ -1,18 +1,17 @@
groups: groups:
- id: registry.k8s - id: registry.k8s
prefix: k8s
type: attribute_group type: attribute_group
display_name: Kubernetes Attributes display_name: Kubernetes Attributes
brief: > brief: >
Kubernetes resource attributes. Kubernetes resource attributes.
attributes: attributes:
- id: cluster.name - id: k8s.cluster.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the cluster. The name of the cluster.
examples: ['opentelemetry-cluster'] examples: ['opentelemetry-cluster']
- id: cluster.uid - id: k8s.cluster.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -42,49 +41,49 @@ groups:
Therefore, UIDs between clusters should be extremely unlikely to Therefore, UIDs between clusters should be extremely unlikely to
conflict. conflict.
examples: ['218fc5a9-a5f1-4b54-aa05-46717d0ab26d'] examples: ['218fc5a9-a5f1-4b54-aa05-46717d0ab26d']
- id: node.name - id: k8s.node.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the Node. The name of the Node.
examples: ['node-1'] examples: ['node-1']
- id: node.uid - id: k8s.node.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The UID of the Node. The UID of the Node.
examples: ['1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2'] examples: ['1eb3a0c6-0477-4080-a9cb-0cb7db65c6a2']
- id: namespace.name - id: k8s.namespace.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the namespace that the pod is running in. The name of the namespace that the pod is running in.
examples: ['default'] examples: ['default']
- id: pod.uid - id: k8s.pod.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The UID of the Pod. The UID of the Pod.
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff']
- id: pod.name - id: k8s.pod.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the Pod. The name of the Pod.
examples: ['opentelemetry-pod-autoconf'] examples: ['opentelemetry-pod-autoconf']
- id: pod.label - id: k8s.pod.label
type: template[string] type: template[string]
stability: experimental stability: experimental
brief: > brief: >
The label key-value pairs placed on the Pod, the `<key>` being the label name, the value being the label value. The label key-value pairs placed on the Pod, the `<key>` being the label name, the value being the label value.
examples: ['k8s.pod.label.app=my-app', 'k8s.pod.label.mycompany.io/arch=x64', 'k8s.pod.label.data='] examples: ['k8s.pod.label.app=my-app', 'k8s.pod.label.mycompany.io/arch=x64', 'k8s.pod.label.data=']
- id: pod.annotation - id: k8s.pod.annotation
type: template[string] type: template[string]
stability: experimental stability: experimental
brief: > brief: >
The annotation key-value pairs placed on the Pod, the `<key>` being the annotation name, the value being the annotation value. The annotation key-value pairs placed on the Pod, the `<key>` being the annotation name, the value being the annotation value.
examples: [ 'k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets=true', 'k8s.pod.annotation.mycompany.io/arch=x64', 'k8s.pod.annotation.data=' ] examples: [ 'k8s.pod.annotation.kubernetes.io/enforce-mountable-secrets=true', 'k8s.pod.annotation.mycompany.io/arch=x64', 'k8s.pod.annotation.data=' ]
- id: container.name - id: k8s.container.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -92,87 +91,87 @@ groups:
within a Pod. Container runtime usually uses different globally unique within a Pod. Container runtime usually uses different globally unique
name (`container.name`). name (`container.name`).
examples: ['redis'] examples: ['redis']
- id: container.restart_count - id: k8s.container.restart_count
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
Number of times the container was restarted. This attribute can be Number of times the container was restarted. This attribute can be
used to identify a particular container (running or stopped) within a used to identify a particular container (running or stopped) within a
container spec. container spec.
- id: container.status.last_terminated_reason - id: k8s.container.status.last_terminated_reason
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Last terminated reason of the Container. Last terminated reason of the Container.
examples: ["Evicted", "Error"] examples: ["Evicted", "Error"]
- id: replicaset.uid - id: k8s.replicaset.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The UID of the ReplicaSet. The UID of the ReplicaSet.
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff']
- id: replicaset.name - id: k8s.replicaset.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the ReplicaSet. The name of the ReplicaSet.
examples: ['opentelemetry'] examples: ['opentelemetry']
- id: deployment.uid - id: k8s.deployment.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The UID of the Deployment. The UID of the Deployment.
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff']
- id: deployment.name - id: k8s.deployment.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the Deployment. The name of the Deployment.
examples: ['opentelemetry'] examples: ['opentelemetry']
- id: statefulset.uid - id: k8s.statefulset.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The UID of the StatefulSet. The UID of the StatefulSet.
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff']
- id: statefulset.name - id: k8s.statefulset.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the StatefulSet. The name of the StatefulSet.
examples: ['opentelemetry'] examples: ['opentelemetry']
- id: daemonset.uid - id: k8s.daemonset.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The UID of the DaemonSet. The UID of the DaemonSet.
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff']
- id: daemonset.name - id: k8s.daemonset.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the DaemonSet. The name of the DaemonSet.
examples: ['opentelemetry'] examples: ['opentelemetry']
- id: job.uid - id: k8s.job.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The UID of the Job. The UID of the Job.
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff']
- id: job.name - id: k8s.job.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the Job. The name of the Job.
examples: ['opentelemetry'] examples: ['opentelemetry']
- id: cronjob.uid - id: k8s.cronjob.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The UID of the CronJob. The UID of the CronJob.
examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff'] examples: ['275ecb36-5aa8-4c2a-9c47-d8bb681b9aff']
- id: cronjob.name - id: k8s.cronjob.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,11 +1,10 @@
groups: groups:
# linux.memory.* attribute group # linux.memory.* attribute group
- id: registry.linux.memory - id: registry.linux.memory
prefix: linux.memory
type: attribute_group type: attribute_group
brief: "Describes Linux Memory attributes" brief: "Describes Linux Memory attributes"
attributes: attributes:
- id: slab.state - id: linux.memory.slab.state
type: type:
members: members:
- id: reclaimable - id: reclaimable

View File

@ -2,16 +2,14 @@ groups:
- id: registry.log - id: registry.log
type: attribute_group type: attribute_group
display_name: General Log Attributes display_name: General Log Attributes
prefix: log
brief: > brief: >
This document defines log attributes This document defines log attributes
attributes: attributes:
- id: iostream - id: log.iostream
stability: experimental stability: experimental
brief: > brief: >
The stream associated with the log. See below for a list of well-known values. The stream associated with the log. See below for a list of well-known values.
type: type:
allow_custom_values: true
members: members:
- id: stdout - id: stdout
value: 'stdout' value: 'stdout'
@ -25,29 +23,28 @@ groups:
- id: registry.log.file # TODO: should we move it to the file model? - id: registry.log.file # TODO: should we move it to the file model?
type: attribute_group type: attribute_group
display_name: Log File Attributes display_name: Log File Attributes
prefix: log.file
brief: > brief: >
Attributes for a file to which log was emitted. Attributes for a file to which log was emitted.
attributes: attributes:
- id: name - id: log.file.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The basename of the file. The basename of the file.
examples: [ "audit.log" ] examples: [ "audit.log" ]
- id: path - id: log.file.path
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The full path to the file. The full path to the file.
examples: [ "/var/log/mysql/audit.log" ] examples: [ "/var/log/mysql/audit.log" ]
- id: name_resolved - id: log.file.name_resolved
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The basename of the file, with symlinks resolved. The basename of the file, with symlinks resolved.
examples: [ "uuid.log" ] examples: [ "uuid.log" ]
- id: path_resolved - id: log.file.path_resolved
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -57,11 +54,10 @@ groups:
- id: registry.log.record - id: registry.log.record
type: attribute_group type: attribute_group
display_name: Log Record Attributes display_name: Log Record Attributes
prefix: log.record
brief: > brief: >
This document defines the generic attributes that may be used in any Log Record. This document defines the generic attributes that may be used in any Log Record.
attributes: attributes:
- id: uid - id: log.record.uid
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -73,7 +69,7 @@ groups:
The id MAY be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec), The id MAY be an [Universally Unique Lexicographically Sortable Identifier (ULID)](https://github.com/ulid/spec),
but other identifiers (e.g. UUID) may be used as needed. but other identifiers (e.g. UUID) may be used as needed.
examples: ["01ARZ3NDEKTSV4RRFFQ69G5FAV"] examples: ["01ARZ3NDEKTSV4RRFFQ69G5FAV"]
- id: original - id: log.record.original
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,11 +1,10 @@
groups: groups:
- id: registry.messaging - id: registry.messaging
prefix: messaging
type: attribute_group type: attribute_group
display_name: General Messaging Attributes display_name: General Messaging Attributes
brief: 'Attributes describing telemetry around messaging systems and messaging activities.' brief: 'Attributes describing telemetry around messaging systems and messaging activities.'
attributes: attributes:
- id: batch.message_count - id: messaging.batch.message_count
type: int type: int
stability: experimental stability: experimental
brief: The number of messages sent, received, or processed in the scope of the batching operation. brief: The number of messages sent, received, or processed in the scope of the batching operation.
@ -14,13 +13,13 @@ groups:
When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD When a messaging client library supports both batch and single-message API for the same operation, instrumentations SHOULD
use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs. use `messaging.batch.message_count` for batching APIs and SHOULD NOT use it for single-message APIs.
examples: [0, 1, 2] examples: [0, 1, 2]
- id: client.id - id: messaging.client.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
A unique identifier for the client that consumes or produces a message. A unique identifier for the client that consumes or produces a message.
examples: ['client-5', 'myhost@8742@s8083jm'] examples: ['client-5', 'myhost@8742@s8083jm']
- id: consumer.group.name - id: messaging.consumer.group.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -29,7 +28,7 @@ groups:
Semantic conventions for individual messaging systems SHOULD document whether `messaging.consumer.group.name` Semantic conventions for individual messaging systems SHOULD document whether `messaging.consumer.group.name`
is applicable and what it means in the context of that system. is applicable and what it means in the context of that system.
examples: ['my-group', 'indexer'] examples: ['my-group', 'indexer']
- id: destination.name - id: messaging.destination.name
type: string type: string
stability: experimental stability: experimental
brief: 'The message destination name' brief: 'The message destination name'
@ -38,7 +37,7 @@ groups:
the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker. the broker doesn't have such notion, the destination name SHOULD uniquely identify the broker.
examples: ['MyQueue', 'MyTopic'] examples: ['MyQueue', 'MyTopic']
tag: messaging-generic tag: messaging-generic
- id: destination.subscription.name - id: messaging.destination.subscription.name
type: string type: string
stability: experimental stability: experimental
brief: 'The name of the destination subscription from which a message is consumed.' brief: 'The name of the destination subscription from which a message is consumed.'
@ -46,7 +45,7 @@ groups:
Semantic conventions for individual messaging systems SHOULD document whether `messaging.destination.subscription.name` Semantic conventions for individual messaging systems SHOULD document whether `messaging.destination.subscription.name`
is applicable and what it means in the context of that system. is applicable and what it means in the context of that system.
examples: ['subscription-a'] examples: ['subscription-a']
- id: destination.template - id: messaging.destination.template
type: string type: string
stability: experimental stability: experimental
brief: Low cardinality representation of the messaging destination name brief: Low cardinality representation of the messaging destination name
@ -57,28 +56,28 @@ groups:
the underlying template is of low cardinality and can be effectively the underlying template is of low cardinality and can be effectively
used for grouping and aggregation. used for grouping and aggregation.
examples: ['/customers/{customerId}'] examples: ['/customers/{customerId}']
- id: destination.anonymous - id: messaging.destination.anonymous
type: boolean type: boolean
stability: experimental stability: experimental
brief: 'A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name).' brief: 'A boolean that is true if the message destination is anonymous (could be unnamed or have auto-generated name).'
- id: destination.temporary - id: messaging.destination.temporary
type: boolean type: boolean
stability: experimental stability: experimental
brief: 'A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed.' brief: 'A boolean that is true if the message destination is temporary and might not exist anymore after messages are processed.'
- id: destination.partition.id - id: messaging.destination.partition.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`. The identifier of the partition messages are sent to or received from, unique within the `messaging.destination.name`.
examples: '1' examples: '1'
- id: message.conversation_id - id: messaging.message.conversation_id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The conversation ID identifying the conversation to which the message belongs, The conversation ID identifying the conversation to which the message belongs,
represented as a string. Sometimes called "Correlation ID". represented as a string. Sometimes called "Correlation ID".
examples: 'MyConversationId' examples: 'MyConversationId'
- id: message.envelope.size - id: messaging.message.envelope.size
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
@ -87,12 +86,12 @@ groups:
This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed This can refer to both the compressed or uncompressed size. If both sizes are known, the uncompressed
size should be used. size should be used.
examples: 2738 examples: 2738
- id: message.id - id: messaging.message.id
type: string type: string
stability: experimental stability: experimental
brief: 'A value used by the messaging system as an identifier for the message, represented as a string.' brief: 'A value used by the messaging system as an identifier for the message, represented as a string.'
examples: '452a7c7c7c7048c2f887f61572b18fc2' examples: '452a7c7c7c7048c2f887f61572b18fc2'
- id: message.body.size - id: messaging.message.body.size
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
@ -101,9 +100,8 @@ groups:
This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed This can refer to both the compressed or uncompressed body size. If both sizes are known, the uncompressed
body size should be used. body size should be used.
examples: 1439 examples: 1439
- id: operation.type - id: messaging.operation.type
type: type:
allow_custom_values: true
members: members:
- id: publish - id: publish
value: "publish" value: "publish"
@ -143,20 +141,19 @@ groups:
brief: > brief: >
A string identifying the type of the messaging operation. A string identifying the type of the messaging operation.
note: If a custom value is used, it MUST be of low cardinality. note: If a custom value is used, it MUST be of low cardinality.
- id: operation.name - id: messaging.operation.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The system-specific name of the messaging operation. The system-specific name of the messaging operation.
examples: [ "ack", "nack", "send" ] examples: [ "ack", "nack", "send" ]
- id: system - id: messaging.system
brief: The messaging system as identified by the client instrumentation. brief: The messaging system as identified by the client instrumentation.
note: > note: >
The actual messaging system may differ from the one known by the client. The actual messaging system may differ from the one known by the client.
For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system` For example, when using Kafka client libraries to communicate with Azure Event Hubs, the `messaging.system`
is set to `kafka` based on the instrumentation's best knowledge. is set to `kafka` based on the instrumentation's best knowledge.
type: type:
allow_custom_values: true
members: members:
- id: activemq - id: activemq
value: 'activemq' value: 'activemq'
@ -204,13 +201,12 @@ groups:
stability: experimental stability: experimental
stability: experimental stability: experimental
- id: registry.messaging.kafka - id: registry.messaging.kafka
prefix: messaging
type: attribute_group type: attribute_group
display_name: Kafka Attributes display_name: Kafka Attributes
brief: > brief: >
This group describes attributes specific to Apache Kafka. This group describes attributes specific to Apache Kafka.
attributes: attributes:
- id: kafka.message.key - id: messaging.kafka.message.key
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -221,45 +217,42 @@ groups:
If the key type is not string, it's string representation has to be supplied for the attribute. If the key type is not string, it's string representation has to be supplied for the attribute.
If the key has no unambiguous, canonical string form, don't include its value. If the key has no unambiguous, canonical string form, don't include its value.
examples: 'myKey' examples: 'myKey'
- id: kafka.offset - id: messaging.kafka.offset
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The offset of a record in the corresponding Kafka partition. The offset of a record in the corresponding Kafka partition.
examples: 42 examples: 42
- id: kafka.message.tombstone - id: messaging.kafka.message.tombstone
type: boolean type: boolean
stability: experimental stability: experimental
brief: 'A boolean that is true if the message is a tombstone.' brief: 'A boolean that is true if the message is a tombstone.'
- id: registry.messaging.rabbitmq - id: registry.messaging.rabbitmq
prefix: messaging
type: attribute_group type: attribute_group
display_name: RabbitMQ Attributes display_name: RabbitMQ Attributes
brief: > brief: >
This group describes attributes specific to RabbitMQ. This group describes attributes specific to RabbitMQ.
attributes: attributes:
- id: rabbitmq.destination.routing_key - id: messaging.rabbitmq.destination.routing_key
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
RabbitMQ message routing key. RabbitMQ message routing key.
examples: 'myKey' examples: 'myKey'
- id: rabbitmq.message.delivery_tag - id: messaging.rabbitmq.message.delivery_tag
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
RabbitMQ message delivery tag RabbitMQ message delivery tag
examples: 123 examples: 123
- id: registry.messaging.rocketmq - id: registry.messaging.rocketmq
prefix: messaging
type: attribute_group type: attribute_group
display_name: RocketMQ Attributes display_name: RocketMQ Attributes
brief: > brief: >
This group describes attributes specific to RocketMQ. This group describes attributes specific to RocketMQ.
attributes: attributes:
- id: rocketmq.consumption_model - id: messaging.rocketmq.consumption_model
type: type:
allow_custom_values: false
members: members:
- id: clustering - id: clustering
value: 'clustering' value: 'clustering'
@ -272,39 +265,38 @@ groups:
stability: experimental stability: experimental
brief: > brief: >
Model of message consumption. This only applies to consumer spans. Model of message consumption. This only applies to consumer spans.
- id: rocketmq.message.delay_time_level - id: messaging.rocketmq.message.delay_time_level
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The delay time level for delay message, which determines the message delay time. The delay time level for delay message, which determines the message delay time.
examples: 3 examples: 3
- id: rocketmq.message.delivery_timestamp - id: messaging.rocketmq.message.delivery_timestamp
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The timestamp in milliseconds that the delay message is expected to be delivered to consumer. The timestamp in milliseconds that the delay message is expected to be delivered to consumer.
examples: 1665987217045 examples: 1665987217045
- id: rocketmq.message.group - id: messaging.rocketmq.message.group
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group. It is essential for FIFO message. Messages that belong to the same message group are always processed one by one within the same consumer group.
examples: 'myMessageGroup' examples: 'myMessageGroup'
- id: rocketmq.message.keys - id: messaging.rocketmq.message.keys
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
Key(s) of message, another way to mark message besides message id. Key(s) of message, another way to mark message besides message id.
examples: ['keyA', 'keyB'] examples: ['keyA', 'keyB']
- id: rocketmq.message.tag - id: messaging.rocketmq.message.tag
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The secondary classifier of message besides topic. The secondary classifier of message besides topic.
examples: tagA examples: tagA
- id: rocketmq.message.type - id: messaging.rocketmq.message.type
type: type:
allow_custom_values: false
members: members:
- id: normal - id: normal
value: 'normal' value: 'normal'
@ -325,67 +317,64 @@ groups:
stability: experimental stability: experimental
brief: > brief: >
Type of message. Type of message.
- id: rocketmq.namespace - id: messaging.rocketmq.namespace
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Namespace of RocketMQ resources, resources in different namespaces are individual. Namespace of RocketMQ resources, resources in different namespaces are individual.
examples: 'myNamespace' examples: 'myNamespace'
- id: registry.messaging.gcp_pubsub - id: registry.messaging.gcp_pubsub
prefix: messaging
type: attribute_group type: attribute_group
display_name: GCP Pub/Sub Attributes display_name: GCP Pub/Sub Attributes
brief: > brief: >
This group describes attributes specific to GCP Pub/Sub. This group describes attributes specific to GCP Pub/Sub.
attributes: attributes:
- id: gcp_pubsub.message.ordering_key - id: messaging.gcp_pubsub.message.ordering_key
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The ordering key for a given message. If the attribute is not present, the message does not have an ordering key. The ordering key for a given message. If the attribute is not present, the message does not have an ordering key.
examples: 'ordering_key' examples: 'ordering_key'
- id: gcp_pubsub.message.ack_id - id: messaging.gcp_pubsub.message.ack_id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The ack id for a given message. The ack id for a given message.
examples: 'ack_id' examples: 'ack_id'
- id: gcp_pubsub.message.ack_deadline - id: messaging.gcp_pubsub.message.ack_deadline
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The ack deadline in seconds set for the modify ack deadline request. The ack deadline in seconds set for the modify ack deadline request.
examples: 10 examples: 10
- id: gcp_pubsub.message.delivery_attempt - id: messaging.gcp_pubsub.message.delivery_attempt
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The delivery attempt for a given message. The delivery attempt for a given message.
examples: 2 examples: 2
- id: registry.messaging.servicebus - id: registry.messaging.servicebus
prefix: messaging
type: attribute_group type: attribute_group
display_name: Azure Service Bus Attributes display_name: Azure Service Bus Attributes
brief: > brief: >
This group describes attributes specific to Azure Service Bus. This group describes attributes specific to Azure Service Bus.
attributes: attributes:
- id: servicebus.message.delivery_count - id: messaging.servicebus.message.delivery_count
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
Number of deliveries that have been attempted for this message. Number of deliveries that have been attempted for this message.
examples: 2 examples: 2
- id: servicebus.message.enqueued_time - id: messaging.servicebus.message.enqueued_time
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The UTC epoch seconds at which the message has been accepted and stored in the entity. The UTC epoch seconds at which the message has been accepted and stored in the entity.
examples: 1701393730 examples: 1701393730
- id: servicebus.disposition_status - id: messaging.servicebus.disposition_status
brief: > brief: >
Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock). Describes the [settlement type](https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#peeklock).
type: type:
allow_custom_values: true
members: members:
- id: complete - id: complete
value: 'complete' value: 'complete'
@ -405,13 +394,12 @@ groups:
stability: experimental stability: experimental
stability: experimental stability: experimental
- id: registry.messaging.eventhubs - id: registry.messaging.eventhubs
prefix: messaging
type: attribute_group type: attribute_group
display_name: Azure Event Hubs Attributes display_name: Azure Event Hubs Attributes
brief: > brief: >
This group describes attributes specific to Azure Event Hubs. This group describes attributes specific to Azure Event Hubs.
attributes: attributes:
- id: eventhubs.message.enqueued_time - id: messaging.eventhubs.message.enqueued_time
type: int type: int
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,34 +1,32 @@
groups: groups:
- id: registry.network - id: registry.network
prefix: network
type: attribute_group type: attribute_group
display_name: Network Attributes display_name: Network Attributes
brief: > brief: >
These attributes may be used for any network related operation. These attributes may be used for any network related operation.
attributes: attributes:
- id: carrier.icc - id: network.carrier.icc
type: string type: string
stability: experimental stability: experimental
brief: "The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network." brief: "The ISO 3166-1 alpha-2 2-character country code associated with the mobile carrier network."
examples: "DE" examples: "DE"
- id: carrier.mcc - id: network.carrier.mcc
type: string type: string
stability: experimental stability: experimental
brief: "The mobile carrier country code." brief: "The mobile carrier country code."
examples: "310" examples: "310"
- id: carrier.mnc - id: network.carrier.mnc
type: string type: string
stability: experimental stability: experimental
brief: "The mobile carrier network code." brief: "The mobile carrier network code."
examples: "001" examples: "001"
- id: carrier.name - id: network.carrier.name
type: string type: string
stability: experimental stability: experimental
brief: "The name of the mobile carrier." brief: "The name of the mobile carrier."
examples: "sprint" examples: "sprint"
- id: connection.subtype - id: network.connection.subtype
type: type:
allow_custom_values: true
members: members:
- id: gprs - id: gprs
brief: GPRS brief: GPRS
@ -117,9 +115,8 @@ groups:
stability: experimental stability: experimental
brief: 'This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection.' brief: 'This describes more details regarding the connection.type. It may be the type of cell technology connection, but it could be used for describing details about a wifi connection.'
examples: 'LTE' examples: 'LTE'
- id: connection.type - id: network.connection.type
type: type:
allow_custom_values: true
members: members:
- id: wifi - id: wifi
value: "wifi" value: "wifi"
@ -139,33 +136,33 @@ groups:
stability: experimental stability: experimental
brief: 'The internet connection type.' brief: 'The internet connection type.'
examples: 'wifi' examples: 'wifi'
- id: local.address - id: network.local.address
stability: stable stability: stable
type: string type: string
brief: Local address of the network connection - IP address or Unix domain socket name. brief: Local address of the network connection - IP address or Unix domain socket name.
examples: ['10.1.2.80', '/tmp/my.sock'] examples: ['10.1.2.80', '/tmp/my.sock']
- id: local.port - id: network.local.port
stability: stable stability: stable
type: int type: int
brief: Local port number of the network connection. brief: Local port number of the network connection.
examples: [65123] examples: [65123]
- id: peer.address - id: network.peer.address
stability: stable stability: stable
type: string type: string
brief: Peer address of the network connection - IP address or Unix domain socket name. brief: Peer address of the network connection - IP address or Unix domain socket name.
examples: ['10.1.2.80', '/tmp/my.sock'] examples: ['10.1.2.80', '/tmp/my.sock']
- id: peer.port - id: network.peer.port
stability: stable stability: stable
type: int type: int
brief: Peer port number of the network connection. brief: Peer port number of the network connection.
examples: [65123] examples: [65123]
- id: protocol.name - id: network.protocol.name
stability: stable stability: stable
type: string type: string
brief: '[OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent.' brief: '[OSI application layer](https://osi-model.com/application-layer/) or non-OSI equivalent.'
note: The value SHOULD be normalized to lowercase. note: The value SHOULD be normalized to lowercase.
examples: ['amqp', 'http', 'mqtt'] examples: ['amqp', 'http', 'mqtt']
- id: protocol.version - id: network.protocol.version
stability: stable stability: stable
type: string type: string
brief: The actual version of the protocol used for network communication. brief: The actual version of the protocol used for network communication.
@ -174,10 +171,9 @@ groups:
If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)), If protocol version is subject to negotiation (for example using [ALPN](https://www.rfc-editor.org/rfc/rfc7301.html)),
this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known, this attribute SHOULD be set to the negotiated version. If the actual protocol version is not known,
this attribute SHOULD NOT be set. this attribute SHOULD NOT be set.
- id: transport - id: network.transport
stability: stable stability: stable
type: type:
allow_custom_values: true
members: members:
- id: tcp - id: tcp
value: 'tcp' value: 'tcp'
@ -209,10 +205,9 @@ groups:
a port number is ambiguous without knowing the transport. For example a port number is ambiguous without knowing the transport. For example
different processes could be listening on TCP port 12345 and UDP port 12345. different processes could be listening on TCP port 12345 and UDP port 12345.
examples: ['tcp', 'udp'] examples: ['tcp', 'udp']
- id: type - id: network.type
stability: stable stability: stable
type: type:
allow_custom_values: true
members: members:
- id: ipv4 - id: ipv4
value: 'ipv4' value: 'ipv4'
@ -225,9 +220,8 @@ groups:
brief: '[OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent.' brief: '[OSI network layer](https://osi-model.com/network-layer/) or non-OSI equivalent.'
note: The value SHOULD be normalized to lowercase. note: The value SHOULD be normalized to lowercase.
examples: ['ipv4', 'ipv6'] examples: ['ipv4', 'ipv6']
- id: io.direction - id: network.io.direction
type: type:
allow_custom_values: false
members: members:
- id: transmit - id: transmit
value: 'transmit' value: 'transmit'

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.oci.manifest - id: registry.oci.manifest
prefix: oci.manifest
type: attribute_group type: attribute_group
display_name: Open Container Initiative (OCI) Attributes display_name: Open Container Initiative (OCI) Attributes
brief: > brief: >
An OCI image manifest. An OCI image manifest.
attributes: attributes:
- id: digest - id: oci.manifest.digest
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,17 +1,15 @@
groups: groups:
- id: registry.opentracing - id: registry.opentracing
prefix: opentracing
type: attribute_group type: attribute_group
display_name: OpenTracing Attributes display_name: OpenTracing Attributes
brief: Attributes used by the OpenTracing Shim layer. brief: Attributes used by the OpenTracing Shim layer.
attributes: attributes:
- id: ref_type - id: opentracing.ref_type
brief: 'Parent-child Reference type' brief: 'Parent-child Reference type'
stability: experimental stability: experimental
note: > note: >
The causal relationship between a child Span and a parent Span. The causal relationship between a child Span and a parent Span.
type: type:
allow_custom_values: true
members: members:
- id: child_of - id: child_of
value: 'child_of' value: 'child_of'

View File

@ -1,6 +1,5 @@
groups: groups:
- id: registry.os - id: registry.os
prefix: os
type: attribute_group type: attribute_group
display_name: Operating System Attributes display_name: Operating System Attributes
brief: > brief: >
@ -9,9 +8,8 @@ groups:
In case of virtualized environments, this is the operating system as it is observed by In case of virtualized environments, this is the operating system as it is observed by
the process, i.e., the virtualized guest rather than the underlying host. the process, i.e., the virtualized guest rather than the underlying host.
attributes: attributes:
- id: type - id: os.type
type: type:
allow_custom_values: true
members: members:
- id: windows - id: windows
value: 'windows' value: 'windows'
@ -60,26 +58,26 @@ groups:
brief: > brief: >
The operating system type. The operating system type.
stability: experimental stability: experimental
- id: description - id: os.description
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Human readable (not intended to be parsed) OS version information, Human readable (not intended to be parsed) OS version information,
like e.g. reported by `ver` or `lsb_release -a` commands. like e.g. reported by `ver` or `lsb_release -a` commands.
examples: ['Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS'] examples: ['Microsoft Windows [Version 10.0.18363.778]', 'Ubuntu 18.04.1 LTS']
- id: name - id: os.name
type: string type: string
stability: experimental stability: experimental
brief: 'Human readable operating system name.' brief: 'Human readable operating system name.'
examples: ['iOS', 'Android', 'Ubuntu'] examples: ['iOS', 'Android', 'Ubuntu']
- id: version - id: os.version
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The version string of the operating system as defined in The version string of the operating system as defined in
[Version Attributes](/docs/resource/README.md#version-attributes). [Version Attributes](/docs/resource/README.md#version-attributes).
examples: ['14.2.1', '18.04.1'] examples: ['14.2.1', '18.04.1']
- id: build_id - id: os.build_id
type: string type: string
stability: experimental stability: experimental
brief: 'Unique identifier for a particular build or compilation of the operating system.' brief: 'Unique identifier for a particular build or compilation of the operating system.'

View File

@ -1,13 +1,11 @@
groups: groups:
- id: registry.otel - id: registry.otel
prefix: otel
type: attribute_group type: attribute_group
display_name: OTel Attributes display_name: OTel Attributes
brief: Attributes reserved for OpenTelemetry brief: Attributes reserved for OpenTelemetry
attributes: attributes:
- id: status_code - id: otel.status_code
type: type:
allow_custom_values: true
members: members:
- id: ok - id: ok
value: OK value: OK
@ -19,23 +17,22 @@ groups:
stability: stable stability: stable
brief: Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET. brief: Name of the code, either "OK" or "ERROR". MUST NOT be set if the status code is UNSET.
stability: stable stability: stable
- id: status_description - id: otel.status_description
type: string type: string
brief: "Description of the Status if it has a value, otherwise not set." brief: "Description of the Status if it has a value, otherwise not set."
examples: ['resource not found'] examples: ['resource not found']
stability: stable stability: stable
- id: registry.otel.scope - id: registry.otel.scope
prefix: otel.scope
type: attribute_group type: attribute_group
display_name: OTel Scope Attributes display_name: OTel Scope Attributes
brief: Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts. brief: Attributes used by non-OTLP exporters to represent OpenTelemetry Scope's concepts.
attributes: attributes:
- id: name - id: otel.scope.name
type: string type: string
brief: The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP). brief: The name of the instrumentation scope - (`InstrumentationScope.Name` in OTLP).
examples: ['io.opentelemetry.contrib.mongodb'] examples: ['io.opentelemetry.contrib.mongodb']
stability: stable stability: stable
- id: version - id: otel.scope.version
type: string type: string
brief: The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP). brief: The version of the instrumentation scope - (`InstrumentationScope.Version` in OTLP).
examples: ['1.0.0'] examples: ['1.0.0']

View File

@ -2,11 +2,10 @@ groups:
- id: registry.peer - id: registry.peer
type: attribute_group type: attribute_group
display_name: Peer Attributes display_name: Peer Attributes
prefix: peer
brief: > brief: >
Operations that access some remote service. Operations that access some remote service.
attributes: attributes:
- id: service - id: peer.service
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,24 +1,23 @@
groups: groups:
- id: registry.process - id: registry.process
prefix: process
type: attribute_group type: attribute_group
display_name: Process Attributes display_name: Process Attributes
brief: > brief: >
An operating system process. An operating system process.
attributes: attributes:
- id: pid - id: process.pid
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
Process identifier (PID). Process identifier (PID).
examples: [1234] examples: [1234]
- id: parent_pid - id: process.parent_pid
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
Parent Process identifier (PPID). Parent Process identifier (PPID).
examples: [111] examples: [111]
- id: vpid - id: process.vpid
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
@ -28,21 +27,21 @@ groups:
across all processes on the host but it is unique within the process across all processes on the host but it is unique within the process
namespace that the process exists within. namespace that the process exists within.
examples: [12] examples: [12]
- id: session_leader.pid - id: process.session_leader.pid
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The PID of the process's session leader. This is also the session ID The PID of the process's session leader. This is also the session ID
(SID) of the process. (SID) of the process.
examples: [14] examples: [14]
- id: group_leader.pid - id: process.group_leader.pid
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The PID of the process's group leader. This is also the process group The PID of the process's group leader. This is also the process group
ID (PGID) of the process. ID (PGID) of the process.
examples: [23] examples: [23]
- id: executable.name - id: process.executable.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -50,7 +49,7 @@ groups:
to the `Name` in `proc/[pid]/status`. On Windows, can be set to the to the `Name` in `proc/[pid]/status`. On Windows, can be set to the
base name of `GetProcessImageFileNameW`. base name of `GetProcessImageFileNameW`.
examples: ['otelcol'] examples: ['otelcol']
- id: executable.path - id: process.executable.path
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -58,7 +57,7 @@ groups:
be set to the target of `proc/[pid]/exe`. On Windows, can be set to the be set to the target of `proc/[pid]/exe`. On Windows, can be set to the
result of `GetProcessImageFileNameW`. result of `GetProcessImageFileNameW`.
examples: ['/usr/bin/cmd/otelcol'] examples: ['/usr/bin/cmd/otelcol']
- id: command - id: process.command
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -66,7 +65,7 @@ groups:
based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. based systems, can be set to the zeroth string in `proc/[pid]/cmdline`.
On Windows, can be set to the first parameter extracted from `GetCommandLineW`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`.
examples: ['cmd/otelcol'] examples: ['cmd/otelcol']
- id: command_line - id: process.command_line
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -75,7 +74,7 @@ groups:
Do not set this if you have to assemble it just for monitoring; use Do not set this if you have to assemble it just for monitoring; use
`process.command_args` instead. `process.command_args` instead.
examples: ['C:\cmd\otecol --config="my directory\config.yaml"'] examples: ['C:\cmd\otecol --config="my directory\config.yaml"']
- id: command_args - id: process.command_args
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
@ -85,95 +84,94 @@ groups:
null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based
executables, this would be the full argv vector passed to `main`. executables, this would be the full argv vector passed to `main`.
examples: ['cmd/otecol', '--config=config.yaml'] examples: ['cmd/otecol', '--config=config.yaml']
- id: owner - id: process.owner
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The username of the user that owns the process. The username of the user that owns the process.
examples: ['root'] examples: ['root']
- id: user.id - id: process.user.id
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The effective user ID (EUID) of the process. The effective user ID (EUID) of the process.
examples: [1001] examples: [1001]
- id: user.name - id: process.user.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The username of the effective user of the process. The username of the effective user of the process.
examples: ['root'] examples: ['root']
- id: real_user.id - id: process.real_user.id
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The real user ID (RUID) of the process. The real user ID (RUID) of the process.
examples: [1000] examples: [1000]
- id: real_user.name - id: process.real_user.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The username of the real user of the process. The username of the real user of the process.
examples: ['operator'] examples: ['operator']
- id: saved_user.id - id: process.saved_user.id
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The saved user ID (SUID) of the process. The saved user ID (SUID) of the process.
examples: [1002] examples: [1002]
- id: saved_user.name - id: process.saved_user.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The username of the saved user. The username of the saved user.
examples: ['operator'] examples: ['operator']
- id: runtime.name - id: process.runtime.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the runtime of this process. The name of the runtime of this process.
examples: ['OpenJDK Runtime Environment'] examples: ['OpenJDK Runtime Environment']
- id: runtime.version - id: process.runtime.version
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The version of the runtime of this process, as returned by the runtime The version of the runtime of this process, as returned by the runtime
without modification. without modification.
examples: '14.0.2' examples: '14.0.2'
- id: runtime.description - id: process.runtime.description
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
An additional description about the runtime of the process, for example An additional description about the runtime of the process, for example
a specific vendor customization of the runtime environment. a specific vendor customization of the runtime environment.
examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0' examples: 'Eclipse OpenJ9 Eclipse OpenJ9 VM openj9-0.21.0'
- id: creation.time - id: process.creation.time
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The date and time the process was created, in ISO 8601 format. The date and time the process was created, in ISO 8601 format.
examples: ['2023-11-21T09:25:34.853Z'] examples: ['2023-11-21T09:25:34.853Z']
- id: exit.time - id: process.exit.time
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The date and time the process exited, in ISO 8601 format. The date and time the process exited, in ISO 8601 format.
examples: ['2023-11-21T09:26:12.315Z'] examples: ['2023-11-21T09:26:12.315Z']
- id: exit.code - id: process.exit.code
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
The exit code of the process. The exit code of the process.
examples: [127] examples: [127]
- id: interactive - id: process.interactive
type: boolean type: boolean
stability: experimental stability: experimental
brief: > brief: >
Whether the process is connected to an interactive shell. Whether the process is connected to an interactive shell.
- id: context_switch_type - id: process.context_switch_type
brief: "Specifies whether the context switches for this data point were voluntary or involuntary." brief: "Specifies whether the context switches for this data point were voluntary or involuntary."
type: type:
allow_custom_values: true
members: members:
- id: voluntary - id: voluntary
value: 'voluntary' value: 'voluntary'
@ -182,12 +180,11 @@ groups:
value: 'involuntary' value: 'involuntary'
stability: experimental stability: experimental
stability: experimental stability: experimental
- id: paging.fault_type - id: process.paging.fault_type
brief: > brief: >
The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor` The type of page fault for this data point. Type `major` is for major/hard page faults, and `minor`
is for minor/soft page faults. is for minor/soft page faults.
type: type:
allow_custom_values: true
members: members:
- id: major - id: major
value: 'major' value: 'major'

View File

@ -1,11 +1,10 @@
groups: groups:
- id: registry.rpc - id: registry.rpc
prefix: rpc
type: attribute_group type: attribute_group
display_name: Remote Procedure Call (RPC) Attributes display_name: Remote Procedure Call (RPC) Attributes
brief: 'This document defines attributes for remote procedure calls.' brief: 'This document defines attributes for remote procedure calls.'
attributes: attributes:
- id: connect_rpc.error_code - id: rpc.connect_rpc.error_code
type: type:
members: members:
- id: cancelled - id: cancelled
@ -58,7 +57,7 @@ groups:
stability: experimental stability: experimental
stability: experimental stability: experimental
brief: "The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values." brief: "The [error codes](https://connect.build/docs/protocol/#error-codes) of the Connect request. Error codes are always string values."
- id: connect_rpc.request.metadata - id: rpc.connect_rpc.request.metadata
type: template[string[]] type: template[string[]]
stability: experimental stability: experimental
brief: > brief: >
@ -67,7 +66,7 @@ groups:
Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured. Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured.
Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information.
examples: ['rpc.request.metadata.my-custom-metadata-attribute=["1.2.3.4", "1.2.3.5"]'] examples: ['rpc.request.metadata.my-custom-metadata-attribute=["1.2.3.4", "1.2.3.5"]']
- id: connect_rpc.response.metadata - id: rpc.connect_rpc.response.metadata
type: template[string[]] type: template[string[]]
stability: experimental stability: experimental
brief: > brief: >
@ -76,7 +75,7 @@ groups:
Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured. Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured.
Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information.
examples: ['rpc.response.metadata.my-custom-metadata-attribute=["attribute_value"]'] examples: ['rpc.response.metadata.my-custom-metadata-attribute=["attribute_value"]']
- id: grpc.status_code - id: rpc.grpc.status_code
type: type:
members: members:
- id: ok - id: ok
@ -149,7 +148,7 @@ groups:
value: 16 value: 16
stability: experimental stability: experimental
brief: "The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request." brief: "The [numeric status code](https://github.com/grpc/grpc/blob/v1.33.2/doc/statuscodes.md) of the gRPC request."
- id: grpc.request.metadata - id: rpc.grpc.request.metadata
type: template[string[]] type: template[string[]]
stability: experimental stability: experimental
brief: > brief: >
@ -158,7 +157,7 @@ groups:
Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured. Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured.
Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. Including all request metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information.
examples: ['rpc.grpc.request.metadata.my-custom-metadata-attribute=["1.2.3.4", "1.2.3.5"]'] examples: ['rpc.grpc.request.metadata.my-custom-metadata-attribute=["1.2.3.4", "1.2.3.5"]']
- id: grpc.response.metadata - id: rpc.grpc.response.metadata
type: template[string[]] type: template[string[]]
stability: experimental stability: experimental
brief: > brief: >
@ -167,17 +166,17 @@ groups:
Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured. Instrumentations SHOULD require an explicit configuration of which metadata values are to be captured.
Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information. Including all response metadata values can be a security risk - explicit configuration helps avoid leaking sensitive information.
examples: ['rpc.grpc.response.metadata.my-custom-metadata-attribute=["attribute_value"]'] examples: ['rpc.grpc.response.metadata.my-custom-metadata-attribute=["attribute_value"]']
- id: jsonrpc.error_code - id: rpc.jsonrpc.error_code
type: int type: int
stability: experimental stability: experimental
brief: "`error.code` property of response if it is an error response." brief: "`error.code` property of response if it is an error response."
examples: [-32700, 100] examples: [-32700, 100]
- id: jsonrpc.error_message - id: rpc.jsonrpc.error_message
type: string type: string
stability: experimental stability: experimental
brief: "`error.message` property of response if it is an error response." brief: "`error.message` property of response if it is an error response."
examples: ['Parse error', 'User already exists'] examples: ['Parse error', 'User already exists']
- id: jsonrpc.request_id - id: rpc.jsonrpc.request_id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -186,12 +185,12 @@ groups:
value is expected to be cast to string for simplicity. value is expected to be cast to string for simplicity.
Use empty string in case of `null` value. Omit entirely if this is a notification. Use empty string in case of `null` value. Omit entirely if this is a notification.
examples: ['10', 'request-7', ''] examples: ['10', 'request-7', '']
- id: jsonrpc.version - id: rpc.jsonrpc.version
type: string type: string
stability: experimental stability: experimental
brief: "Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted." brief: "Protocol version as in `jsonrpc` property of request/response. Since JSON-RPC 1.0 doesn't specify this, the value can be omitted."
examples: ['2.0', '1.0'] examples: ['2.0', '1.0']
- id: method - id: rpc.method
type: string type: string
stability: experimental stability: experimental
brief: 'The name of the (logical) method being called, must be equal to the $method part in the span name.' brief: 'The name of the (logical) method being called, must be equal to the $method part in the span name.'
@ -202,7 +201,7 @@ groups:
(e.g., method actually executing the call on the server side, (e.g., method actually executing the call on the server side,
RPC client stub method on the client side). RPC client stub method on the client side).
examples: "exampleMethod" examples: "exampleMethod"
- id: service - id: rpc.service
type: string type: string
stability: experimental stability: experimental
brief: 'The full (logical) name of the service being called, including its package name, if applicable.' brief: 'The full (logical) name of the service being called, including its package name, if applicable.'
@ -214,10 +213,9 @@ groups:
e.g., class with method actually executing the call on the server side, e.g., class with method actually executing the call on the server side,
RPC client stub class on the client side). RPC client stub class on the client side).
examples: "myservice.EchoService" examples: "myservice.EchoService"
- id: system - id: rpc.system
brief: 'A string identifying the remoting system. See below for a list of well-known identifiers.' brief: 'A string identifying the remoting system. See below for a list of well-known identifiers.'
type: type:
allow_custom_values: true
members: members:
- id: grpc - id: grpc
value: 'grpc' value: 'grpc'
@ -240,7 +238,7 @@ groups:
brief: 'Connect RPC' brief: 'Connect RPC'
stability: experimental stability: experimental
stability: experimental stability: experimental
- id: message.type - id: rpc.message.type
type: type:
members: members:
- id: sent - id: sent
@ -251,16 +249,16 @@ groups:
stability: experimental stability: experimental
stability: experimental stability: experimental
brief: "Whether this is a received or sent message." brief: "Whether this is a received or sent message."
- id: message.id - id: rpc.message.id
type: int type: int
stability: experimental stability: experimental
brief: "MUST be calculated as two different counters starting from `1` one for sent messages and one for received message." brief: "MUST be calculated as two different counters starting from `1` one for sent messages and one for received message."
note: "This way we guarantee that the values will be consistent between different implementations." note: "This way we guarantee that the values will be consistent between different implementations."
- id: message.compressed_size - id: rpc.message.compressed_size
type: int type: int
stability: experimental stability: experimental
brief: "Compressed size of the message in bytes." brief: "Compressed size of the message in bytes."
- id: message.uncompressed_size - id: rpc.message.uncompressed_size
type: int type: int
stability: experimental stability: experimental
brief: "Uncompressed size of the message in bytes." brief: "Uncompressed size of the message in bytes."

View File

@ -1,6 +1,5 @@
groups: groups:
- id: registry.server - id: registry.server
prefix: server
type: attribute_group type: attribute_group
display_name: Server Attributes display_name: Server Attributes
brief: > brief: >
@ -11,7 +10,7 @@ groups:
protocol / API doesn't expose a clear notion of client and server). protocol / API doesn't expose a clear notion of client and server).
This also covers UDP network interactions where one side initiates the interaction, e.g. QUIC (HTTP/3) and DNS. This also covers UDP network interactions where one side initiates the interaction, e.g. QUIC (HTTP/3) and DNS.
attributes: attributes:
- id: address - id: server.address
stability: stable stability: stable
type: string type: string
brief: "Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name." brief: "Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name."
@ -19,7 +18,7 @@ groups:
When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent When observed from the client side, and when communicating through an intermediary, `server.address` SHOULD represent
the server address behind any intermediaries, for example proxies, if it's available. the server address behind any intermediaries, for example proxies, if it's available.
examples: ['example.com', '10.1.2.80', '/tmp/my.sock'] examples: ['example.com', '10.1.2.80', '/tmp/my.sock']
- id: port - id: server.port
stability: stable stability: stable
type: int type: int
brief: Server port number. brief: Server port number.

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.service - id: registry.service
prefix: service
type: attribute_group type: attribute_group
display_name: Service Attributes display_name: Service Attributes
brief: > brief: >
A service instance. A service instance.
attributes: attributes:
- id: name - id: service.name
type: string type: string
brief: > brief: >
Logical name of the service. Logical name of the service.
@ -17,13 +16,13 @@ groups:
If `process.executable.name` is not available, the value MUST be set to `unknown_service`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`.
examples: ["shoppingcart"] examples: ["shoppingcart"]
stability: stable stability: stable
- id: version - id: service.version
type: string type: string
brief: > brief: >
The version string of the service API or implementation. The format is not defined by these conventions. The version string of the service API or implementation. The format is not defined by these conventions.
examples: ["2.0.0", "a01dbef8a"] examples: ["2.0.0", "a01dbef8a"]
stability: stable stability: stable
- id: namespace - id: service.namespace
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -37,7 +36,7 @@ groups:
(so the empty/unspecified namespace is simply one more valid namespace). (so the empty/unspecified namespace is simply one more valid namespace).
Zero-length namespace string is assumed equal to unspecified namespace. Zero-length namespace string is assumed equal to unspecified namespace.
examples: ["Shop"] examples: ["Shop"]
- id: instance.id - id: service.instance.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,6 +1,5 @@
groups: groups:
- id: registry.session - id: registry.session
prefix: session
type: attribute_group type: attribute_group
display_name: Session Attributes display_name: Session Attributes
brief: > brief: >
@ -15,12 +14,12 @@ groups:
will be assigned. The previous session identifier may be provided by the instrumentation so that telemetry will be assigned. The previous session identifier may be provided by the instrumentation so that telemetry
backends can link the two sessions. backends can link the two sessions.
attributes: attributes:
- id: id - id: session.id
type: string type: string
stability: experimental stability: experimental
brief: "A unique id to identify a session." brief: "A unique id to identify a session."
examples: "00112233-4455-6677-8899-aabbccddeeff" examples: "00112233-4455-6677-8899-aabbccddeeff"
- id: previous_id - id: session.previous_id
type: string type: string
stability: experimental stability: experimental
brief: "The previous `session.id` for this user, when known." brief: "The previous `session.id` for this user, when known."

View File

@ -1,11 +1,10 @@
groups: groups:
- id: registry.signalr - id: registry.signalr
prefix: signalr
type: attribute_group type: attribute_group
display_name: SignalR Attributes display_name: SignalR Attributes
brief: SignalR attributes brief: SignalR attributes
attributes: attributes:
- id: connection.status - id: signalr.connection.status
type: type:
members: members:
- id: normal_closure - id: normal_closure
@ -23,10 +22,9 @@ groups:
stability: stable stability: stable
brief: SignalR HTTP connection closure status. brief: SignalR HTTP connection closure status.
examples: ["app_shutdown", "timeout"] examples: ["app_shutdown", "timeout"]
- id: transport - id: signalr.transport
brief: "[SignalR transport type](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md)" brief: "[SignalR transport type](https://github.com/dotnet/aspnetcore/blob/main/src/SignalR/docs/specs/TransportProtocols.md)"
type: type:
allow_custom_values: true
members: members:
- id: server_sent_events - id: server_sent_events
value: 'server_sent_events' value: 'server_sent_events'

View File

@ -1,6 +1,5 @@
groups: groups:
- id: registry.source - id: registry.source
prefix: source
type: attribute_group type: attribute_group
display_name: Source Attributes display_name: Source Attributes
brief: > brief: >
@ -11,7 +10,7 @@ groups:
This also covers unidirectional UDP flows and peer-to-peer communication where the This also covers unidirectional UDP flows and peer-to-peer communication where the
"user-facing" surface of the protocol / API doesn't expose a clear notion of client and server. "user-facing" surface of the protocol / API doesn't expose a clear notion of client and server.
attributes: attributes:
- id: address - id: source.address
type: string type: string
stability: experimental stability: experimental
brief: "Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name." brief: "Source address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name."
@ -19,7 +18,7 @@ groups:
When observed from the destination side, and when communicating through an intermediary, `source.address` SHOULD represent When observed from the destination side, and when communicating through an intermediary, `source.address` SHOULD represent
the source address behind any intermediaries, for example proxies, if it's available. the source address behind any intermediaries, for example proxies, if it's available.
examples: ['source.example.com', '10.1.2.80', '/tmp/my.sock'] examples: ['source.example.com', '10.1.2.80', '/tmp/my.sock']
- id: port - id: source.port
type: int type: int
stability: experimental stability: experimental
brief: 'Source port number' brief: 'Source port number'

View File

@ -1,38 +1,34 @@
groups: groups:
# General system attributes # General system attributes
- id: registry.system - id: registry.system
prefix: system
type: attribute_group type: attribute_group
display_name: General System Attributes display_name: General System Attributes
brief: "Describes System attributes" brief: "Describes System attributes"
attributes: attributes:
- id: device - id: system.device
type: string type: string
stability: experimental stability: experimental
brief: "The device identifier" brief: "The device identifier"
examples: ["(identifier)"] examples: ["(identifier)"]
# system.cpu.* attribute group # system.cpu.* attribute group
- id: registry.system.cpu - id: registry.system.cpu
prefix: system.cpu
type: attribute_group type: attribute_group
display_name: System CPU Attributes display_name: System CPU Attributes
brief: "Describes System CPU attributes" brief: "Describes System CPU attributes"
attributes: attributes:
- id: logical_number - id: system.cpu.logical_number
type: int type: int
stability: experimental stability: experimental
brief: "The logical CPU number [0..n-1]" brief: "The logical CPU number [0..n-1]"
examples: [1] examples: [1]
# system.memory.* attribute group # system.memory.* attribute group
- id: registry.system.memory - id: registry.system.memory
prefix: system.memory
type: attribute_group type: attribute_group
display_name: System Memory Attributes display_name: System Memory Attributes
brief: "Describes System Memory attributes" brief: "Describes System Memory attributes"
attributes: attributes:
- id: state - id: system.memory.state
type: type:
allow_custom_values: true
members: members:
- id: used - id: used
value: 'used' value: 'used'
@ -55,14 +51,12 @@ groups:
examples: ["free", "cached"] examples: ["free", "cached"]
# system.paging.* attribute group # system.paging.* attribute group
- id: registry.system.paging - id: registry.system.paging
prefix: system.paging
type: attribute_group type: attribute_group
display_name: System Paging Attributes display_name: System Paging Attributes
brief: "Describes System Memory Paging attributes" brief: "Describes System Memory Paging attributes"
attributes: attributes:
- id: state - id: system.paging.state
type: type:
allow_custom_values: false
members: members:
- id: used - id: used
value: 'used' value: 'used'
@ -73,9 +67,8 @@ groups:
stability: experimental stability: experimental
brief: "The memory paging state" brief: "The memory paging state"
examples: ["free"] examples: ["free"]
- id: type - id: system.paging.type
type: type:
allow_custom_values: false
members: members:
- id: major - id: major
value: 'major' value: 'major'
@ -86,9 +79,8 @@ groups:
stability: experimental stability: experimental
brief: "The memory paging type" brief: "The memory paging type"
examples: ["minor"] examples: ["minor"]
- id: direction - id: system.paging.direction
type: type:
allow_custom_values: false
members: members:
- id: in - id: in
value: 'in' value: 'in'
@ -100,15 +92,13 @@ groups:
brief: "The paging access direction" brief: "The paging access direction"
examples: ["in"] examples: ["in"]
- id: registry.system.filesystem - id: registry.system.filesystem
prefix: system.filesystem
type: attribute_group type: attribute_group
display_name: Filesystem Attributes display_name: Filesystem Attributes
brief: "Describes Filesystem attributes" brief: "Describes Filesystem attributes"
attributes: attributes:
- id: state - id: system.filesystem.state
brief: "The filesystem state" brief: "The filesystem state"
type: type:
allow_custom_values: false
members: members:
- id: used - id: used
value: 'used' value: 'used'
@ -121,9 +111,8 @@ groups:
stability: experimental stability: experimental
stability: experimental stability: experimental
examples: ["used"] examples: ["used"]
- id: type - id: system.filesystem.type
type: type:
allow_custom_values: true
members: members:
- id: fat32 - id: fat32
value: 'fat32' value: 'fat32'
@ -146,26 +135,24 @@ groups:
stability: experimental stability: experimental
brief: "The filesystem type" brief: "The filesystem type"
examples: ["ext4"] examples: ["ext4"]
- id: mode - id: system.filesystem.mode
type: string type: string
stability: experimental stability: experimental
brief: "The filesystem mode" brief: "The filesystem mode"
examples: ["rw, ro"] examples: ["rw, ro"]
- id: mountpoint - id: system.filesystem.mountpoint
type: string type: string
stability: experimental stability: experimental
brief: "The filesystem mount path" brief: "The filesystem mount path"
examples: ["/mnt/data"] examples: ["/mnt/data"]
# System-specific network attributes # System-specific network attributes
- id: registry.system.network - id: registry.system.network
prefix: system.network
type: attribute_group type: attribute_group
display_name: System Network Attributes display_name: System Network Attributes
brief: "Describes Network attributes" brief: "Describes Network attributes"
attributes: attributes:
- id: state - id: system.network.state
type: type:
allow_custom_values: false
members: members:
- id: close - id: close
value: 'close' value: 'close'
@ -208,14 +195,12 @@ groups:
examples: ["close_wait"] examples: ["close_wait"]
# system.process.* attribute group # system.process.* attribute group
- id: registry.system.process - id: registry.system.process
prefix: system.process
type: attribute_group type: attribute_group
display_name: System Process Attributes display_name: System Process Attributes
brief: "Describes System Process attributes" brief: "Describes System Process attributes"
attributes: attributes:
- id: status - id: system.process.status
type: type:
allow_custom_values: true
members: members:
- id: running - id: running
value: 'running' value: 'running'

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.telemetry - id: registry.telemetry
prefix: telemetry
type: attribute_group type: attribute_group
display_name: Telemetry Attributes display_name: Telemetry Attributes
brief: > brief: >
This document defines attributes for telemetry SDK. This document defines attributes for telemetry SDK.
attributes: attributes:
- id: sdk.name - id: telemetry.sdk.name
type: string type: string
stability: stable stability: stable
requirement_level: required requirement_level: required
@ -20,9 +19,8 @@ groups:
The identifier `opentelemetry` is reserved and MUST NOT be used in this case. The identifier `opentelemetry` is reserved and MUST NOT be used in this case.
All custom identifiers SHOULD be stable across different versions of an implementation. All custom identifiers SHOULD be stable across different versions of an implementation.
examples: ["opentelemetry"] examples: ["opentelemetry"]
- id: sdk.language - id: telemetry.sdk.language
type: type:
allow_custom_values: true
members: members:
- id: cpp - id: cpp
value: "cpp" value: "cpp"
@ -64,14 +62,14 @@ groups:
requirement_level: required requirement_level: required
brief: > brief: >
The language of the telemetry SDK. The language of the telemetry SDK.
- id: sdk.version - id: telemetry.sdk.version
type: string type: string
stability: stable stability: stable
requirement_level: required requirement_level: required
brief: > brief: >
The version string of the telemetry SDK. The version string of the telemetry SDK.
examples: ["1.2.3"] examples: ["1.2.3"]
- id: distro.name - id: telemetry.distro.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -80,7 +78,7 @@ groups:
Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to Official auto instrumentation agents and distributions SHOULD set the `telemetry.distro.name` attribute to
a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`. a string starting with `opentelemetry-`, e.g. `opentelemetry-java-instrumentation`.
examples: ["parts-unlimited-java"] examples: ["parts-unlimited-java"]
- id: distro.version - id: telemetry.distro.version
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,18 +1,17 @@
groups: groups:
- id: registry.test - id: registry.test
prefix: test
type: attribute_group type: attribute_group
brief: > brief: >
This group describes attributes specific to This group describes attributes specific to
[software tests](https://en.wikipedia.org/wiki/Software_testing). [software tests](https://en.wikipedia.org/wiki/Software_testing).
attributes: attributes:
- id: suite.name - id: test.suite.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The human readable name of a [test suite](https://en.wikipedia.org/wiki/Test_suite). The human readable name of a [test suite](https://en.wikipedia.org/wiki/Test_suite).
examples: ["TestSuite1"] examples: ["TestSuite1"]
- id: suite.run.status - id: test.suite.run.status
type: type:
members: members:
- id: success - id: success
@ -51,7 +50,7 @@ groups:
"timed_out", "timed_out",
"in_progress", "in_progress",
] ]
- id: case.name - id: test.case.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -62,7 +61,7 @@ groups:
"example/tests/TestCase1.test1", "example/tests/TestCase1.test1",
"ExampleTestCase1_test1", "ExampleTestCase1_test1",
] ]
- id: case.result.status - id: test.case.result.status
type: type:
members: members:
- id: pass - id: pass

View File

@ -1,18 +1,17 @@
groups: groups:
- id: registry.thread - id: registry.thread
prefix: thread
type: attribute_group type: attribute_group
display_name: Thread Attributes display_name: Thread Attributes
brief: > brief: >
These attributes may be used for any operation to store information about a thread that started a span. These attributes may be used for any operation to store information about a thread that started a span.
attributes: attributes:
- id: id - id: thread.id
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
Current "managed" thread ID (as opposed to OS thread ID). Current "managed" thread ID (as opposed to OS thread ID).
examples: 42 examples: 42
- id: name - id: thread.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,11 +1,10 @@
groups: groups:
- id: registry.tls - id: registry.tls
prefix: tls
type: attribute_group type: attribute_group
display_name: TLS Attributes display_name: TLS Attributes
brief: "This document defines semantic convention attributes in the TLS namespace." brief: "This document defines semantic convention attributes in the TLS namespace."
attributes: attributes:
- id: cipher - id: tls.cipher
brief: > brief: >
String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection. String indicating the [cipher](https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.5) used during the current connection.
type: string type: string
@ -18,34 +17,34 @@ groups:
"TLS_RSA_WITH_3DES_EDE_CBC_SHA", "TLS_RSA_WITH_3DES_EDE_CBC_SHA",
"TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256", "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256",
] ]
- id: client.certificate - id: tls.client.certificate
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list. PEM-encoded stand-alone certificate offered by the client. This is usually mutually-exclusive of `client.certificate_chain` since this value also exists in that list.
examples: ["MII..."] examples: ["MII..."]
- id: client.certificate_chain - id: tls.client.certificate_chain
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
Array of PEM-encoded certificates that make up the certificate chain offered by the client. Array of PEM-encoded certificates that make up the certificate chain offered by the client.
This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain. This is usually mutually-exclusive of `client.certificate` since that value should be the first certificate in the chain.
examples: ["MII...", "MI..."] examples: ["MII...", "MI..."]
- id: client.hash.md5 - id: tls.client.hash.md5
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client. Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the client.
For consistency with other hash values, this value should be formatted as an uppercase hash. For consistency with other hash values, this value should be formatted as an uppercase hash.
examples: ["0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"] examples: ["0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"]
- id: client.hash.sha1 - id: tls.client.hash.sha1
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client. Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the client.
For consistency with other hash values, this value should be formatted as an uppercase hash. For consistency with other hash values, this value should be formatted as an uppercase hash.
examples: ["9E393D93138888D288266C2D915214D1D1CCEB2A"] examples: ["9E393D93138888D288266C2D915214D1D1CCEB2A"]
- id: client.hash.sha256 - id: tls.client.hash.sha256
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -53,33 +52,33 @@ groups:
For consistency with other hash values, this value should be formatted as an uppercase hash. For consistency with other hash values, this value should be formatted as an uppercase hash.
examples: examples:
["0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"] ["0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"]
- id: client.issuer - id: tls.client.issuer
type: string type: string
stability: experimental stability: experimental
brief: "Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client." brief: "Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client."
examples: examples:
["CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"] ["CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"]
- id: client.ja3 - id: tls.client.ja3
type: string type: string
stability: experimental stability: experimental
brief: "A hash that identifies clients based on how they perform an SSL/TLS handshake." brief: "A hash that identifies clients based on how they perform an SSL/TLS handshake."
examples: ["d4e5b18d6b55c71272893221c96ba240"] examples: ["d4e5b18d6b55c71272893221c96ba240"]
- id: client.not_after - id: tls.client.not_after
type: string type: string
stability: experimental stability: experimental
brief: "Date/Time indicating when client certificate is no longer considered valid." brief: "Date/Time indicating when client certificate is no longer considered valid."
examples: ["2021-01-01T00:00:00.000Z"] examples: ["2021-01-01T00:00:00.000Z"]
- id: client.not_before - id: tls.client.not_before
type: string type: string
stability: experimental stability: experimental
brief: "Date/Time indicating when client certificate is first considered valid." brief: "Date/Time indicating when client certificate is first considered valid."
examples: ["1970-01-01T00:00:00.000Z"] examples: ["1970-01-01T00:00:00.000Z"]
- id: client.subject - id: tls.client.subject
type: string type: string
stability: experimental stability: experimental
brief: "Distinguished name of subject of the x.509 certificate presented by the client." brief: "Distinguished name of subject of the x.509 certificate presented by the client."
examples: ["CN=myclient, OU=Documentation Team, DC=example, DC=com"] examples: ["CN=myclient, OU=Documentation Team, DC=example, DC=com"]
- id: client.supported_ciphers - id: tls.client.supported_ciphers
type: string[] type: string[]
stability: experimental stability: experimental
brief: Array of ciphers offered by the client during the client hello. brief: Array of ciphers offered by the client during the client hello.
@ -87,17 +86,17 @@ groups:
[ [
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "..." "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384", "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384", "..."
] ]
- id: curve - id: tls.curve
brief: "String indicating the curve used for the given cipher, when applicable" brief: "String indicating the curve used for the given cipher, when applicable"
type: string type: string
stability: experimental stability: experimental
examples: ["secp256r1"] examples: ["secp256r1"]
- id: established - id: tls.established
brief: "Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel." brief: "Boolean flag indicating if the TLS negotiation was successful and transitioned to an encrypted tunnel."
type: boolean type: boolean
stability: experimental stability: experimental
examples: [true] examples: [true]
- id: next_protocol - id: tls.next_protocol
brief: > brief: >
String indicating the protocol being tunneled. String indicating the protocol being tunneled.
Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids), Per the values in the [IANA registry](https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids),
@ -105,11 +104,10 @@ groups:
type: string type: string
stability: experimental stability: experimental
examples: ["http/1.1"] examples: ["http/1.1"]
- id: protocol.name - id: tls.protocol.name
brief: > brief: >
Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) Normalized lowercase protocol name parsed from original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES)
type: type:
allow_custom_values: true
members: members:
- id: ssl - id: ssl
value: ssl value: ssl
@ -118,45 +116,45 @@ groups:
value: tls value: tls
stability: experimental stability: experimental
stability: experimental stability: experimental
- id: protocol.version - id: tls.protocol.version
brief: > brief: >
Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES) Numeric part of the version parsed from the original string of the negotiated [SSL/TLS protocol version](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html#RETURN-VALUES)
type: string type: string
stability: experimental stability: experimental
examples: ["1.2", "3"] examples: ["1.2", "3"]
- id: resumed - id: tls.resumed
brief: "Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation." brief: "Boolean flag indicating if this TLS connection was resumed from an existing TLS negotiation."
type: boolean type: boolean
stability: experimental stability: experimental
examples: [true] examples: [true]
- id: server.certificate - id: tls.server.certificate
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list. PEM-encoded stand-alone certificate offered by the server. This is usually mutually-exclusive of `server.certificate_chain` since this value also exists in that list.
examples: ["MII..."] examples: ["MII..."]
- id: server.certificate_chain - id: tls.server.certificate_chain
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >
Array of PEM-encoded certificates that make up the certificate chain offered by the server. Array of PEM-encoded certificates that make up the certificate chain offered by the server.
This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain. This is usually mutually-exclusive of `server.certificate` since that value should be the first certificate in the chain.
examples: ["MII...", "MI..."] examples: ["MII...", "MI..."]
- id: server.hash.md5 - id: tls.server.hash.md5
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server. Certificate fingerprint using the MD5 digest of DER-encoded version of certificate offered by the server.
For consistency with other hash values, this value should be formatted as an uppercase hash. For consistency with other hash values, this value should be formatted as an uppercase hash.
examples: ["0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"] examples: ["0F76C7F2C55BFD7D8E8B8F4BFBF0C9EC"]
- id: server.hash.sha1 - id: tls.server.hash.sha1
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server. Certificate fingerprint using the SHA1 digest of DER-encoded version of certificate offered by the server.
For consistency with other hash values, this value should be formatted as an uppercase hash. For consistency with other hash values, this value should be formatted as an uppercase hash.
examples: ["9E393D93138888D288266C2D915214D1D1CCEB2A"] examples: ["9E393D93138888D288266C2D915214D1D1CCEB2A"]
- id: server.hash.sha256 - id: tls.server.hash.sha256
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -164,28 +162,28 @@ groups:
For consistency with other hash values, this value should be formatted as an uppercase hash. For consistency with other hash values, this value should be formatted as an uppercase hash.
examples: examples:
["0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"] ["0687F666A054EF17A08E2F2162EAB4CBC0D265E1D7875BE74BF3C712CA92DAF0"]
- id: server.issuer - id: tls.server.issuer
type: string type: string
stability: experimental stability: experimental
brief: "Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client." brief: "Distinguished name of [subject](https://datatracker.ietf.org/doc/html/rfc5280#section-4.1.2.6) of the issuer of the x.509 certificate presented by the client."
examples: examples:
["CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"] ["CN=Example Root CA, OU=Infrastructure Team, DC=example, DC=com"]
- id: server.ja3s - id: tls.server.ja3s
type: string type: string
stability: experimental stability: experimental
brief: "A hash that identifies servers based on how they perform an SSL/TLS handshake." brief: "A hash that identifies servers based on how they perform an SSL/TLS handshake."
examples: ["d4e5b18d6b55c71272893221c96ba240"] examples: ["d4e5b18d6b55c71272893221c96ba240"]
- id: server.not_after - id: tls.server.not_after
type: string type: string
stability: experimental stability: experimental
brief: "Date/Time indicating when server certificate is no longer considered valid." brief: "Date/Time indicating when server certificate is no longer considered valid."
examples: ["2021-01-01T00:00:00.000Z"] examples: ["2021-01-01T00:00:00.000Z"]
- id: server.not_before - id: tls.server.not_before
type: string type: string
stability: experimental stability: experimental
brief: "Date/Time indicating when server certificate is first considered valid." brief: "Date/Time indicating when server certificate is first considered valid."
examples: ["1970-01-01T00:00:00.000Z"] examples: ["1970-01-01T00:00:00.000Z"]
- id: server.subject - id: tls.server.subject
type: string type: string
stability: experimental stability: experimental
brief: "Distinguished name of subject of the x.509 certificate presented by the server." brief: "Distinguished name of subject of the x.509 certificate presented by the server."

View File

@ -3,9 +3,8 @@ groups:
brief: Attributes describing URL. brief: Attributes describing URL.
type: attribute_group type: attribute_group
display_name: URL Attributes display_name: URL Attributes
prefix: url
attributes: attributes:
- id: domain - id: url.domain
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -16,7 +15,7 @@ groups:
If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2) If the URL contains a [literal IPv6 address](https://www.rfc-editor.org/rfc/rfc2732#section-2)
enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field. enclosed by `[` and `]`, the `[` and `]` characters should also be captured in the domain field.
examples: ["www.foo.bar", "opentelemetry.io", "3.12.167.2", "[1080:0:0:0:8:800:200C:417A]"] examples: ["www.foo.bar", "opentelemetry.io", "3.12.167.2", "[1080:0:0:0:8:800:200C:417A]"]
- id: extension - id: url.extension
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -25,13 +24,13 @@ groups:
The file extension is only set if it exists, as not every url has a file extension. The file extension is only set if it exists, as not every url has a file extension.
When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz`. When the file name has multiple extensions `example.tar.gz`, only the last one should be captured `gz`, not `tar.gz`.
examples: [ "png", "gz" ] examples: [ "png", "gz" ]
- id: fragment - id: url.fragment
stability: stable stability: stable
type: string type: string
brief: > brief: >
The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component The [URI fragment](https://www.rfc-editor.org/rfc/rfc3986#section-3.5) component
examples: ["SemConv"] examples: ["SemConv"]
- id: full - id: url.full
stability: stable stability: stable
type: string type: string
brief: Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986) brief: Absolute URL describing a network resource according to [RFC3986](https://www.rfc-editor.org/rfc/rfc3986)
@ -45,7 +44,7 @@ groups:
`url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed). `url.full` SHOULD capture the absolute URL when it is available (or can be reconstructed).
Sensitive content provided in `url.full` SHOULD be scrubbed when instrumentations can identify it. Sensitive content provided in `url.full` SHOULD be scrubbed when instrumentations can identify it.
examples: ['https://www.foo.bar/search?q=OpenTelemetry#SemConv', '//localhost'] examples: ['https://www.foo.bar/search?q=OpenTelemetry#SemConv', '//localhost']
- id: original - id: url.original
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -57,7 +56,7 @@ groups:
`url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`. `url.original` might contain credentials passed via URL in form of `https://username:password@www.example.com/`.
In such case password and username SHOULD NOT be redacted and attribute's value SHOULD remain the same. In such case password and username SHOULD NOT be redacted and attribute's value SHOULD remain the same.
examples: ["https://www.foo.bar/search?q=OpenTelemetry#SemConv", "search?q=OpenTelemetry"] examples: ["https://www.foo.bar/search?q=OpenTelemetry#SemConv", "search?q=OpenTelemetry"]
- id: path - id: url.path
stability: stable stability: stable
type: string type: string
brief: > brief: >
@ -65,13 +64,13 @@ groups:
examples: ["/search"] examples: ["/search"]
note: > note: >
Sensitive content provided in `url.path` SHOULD be scrubbed when instrumentations can identify it. Sensitive content provided in `url.path` SHOULD be scrubbed when instrumentations can identify it.
- id: port - id: url.port
type: int type: int
stability: experimental stability: experimental
brief: > brief: >
Port extracted from the `url.full` Port extracted from the `url.full`
examples: [443] examples: [443]
- id: query - id: url.query
stability: stable stability: stable
type: string type: string
brief: > brief: >
@ -79,7 +78,7 @@ groups:
examples: ["q=OpenTelemetry"] examples: ["q=OpenTelemetry"]
note: > note: >
Sensitive content provided in `url.query` SHOULD be scrubbed when instrumentations can identify it. Sensitive content provided in `url.query` SHOULD be scrubbed when instrumentations can identify it.
- id: registered_domain - id: url.registered_domain
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -89,13 +88,13 @@ groups:
This value can be determined precisely with the [public suffix list](http://publicsuffix.org). This value can be determined precisely with the [public suffix list](http://publicsuffix.org).
For example, the registered domain for `foo.example.com` is `example.com`. For example, the registered domain for `foo.example.com` is `example.com`.
Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk`. Trying to approximate this by simply taking the last two labels will not work well for TLDs such as `co.uk`.
- id: scheme - id: url.scheme
stability: stable stability: stable
type: string type: string
brief: > brief: >
The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol. The [URI scheme](https://www.rfc-editor.org/rfc/rfc3986#section-3.1) component identifying the used protocol.
examples: ["https", "ftp", "telnet"] examples: ["https", "ftp", "telnet"]
- id: subdomain - id: url.subdomain
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -106,13 +105,13 @@ groups:
note: > note: >
The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain, The subdomain portion of `www.east.mydomain.co.uk` is `east`. If the domain has multiple levels of subdomain,
such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period. such as `sub2.sub1.example.com`, the subdomain field should contain `sub2.sub1`, with no trailing period.
- id: template - id: url.template
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2). The low-cardinality template of an [absolute path reference](https://www.rfc-editor.org/rfc/rfc3986#section-4.2).
examples: ["/users/{id}", "/users/:id", "/users?id={id}"] examples: ["/users/{id}", "/users/:id", "/users?id={id}"]
- id: top_level_domain - id: url.top_level_domain
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,11 +1,10 @@
groups: groups:
- id: registry.user_agent - id: registry.user_agent
prefix: user_agent
type: attribute_group type: attribute_group
display_name: User-agent Attributes display_name: User-agent Attributes
brief: "Describes user-agent attributes." brief: "Describes user-agent attributes."
attributes: attributes:
- id: original - id: user_agent.original
stability: stable stability: stable
type: string type: string
brief: > brief: >
@ -13,7 +12,7 @@ groups:
examples: ['CERN-LineMode/2.15 libwww/2.17b3', examples: ['CERN-LineMode/2.15 libwww/2.17b3',
'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1', 'Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1',
'YourApp/1.0.0 grpc-java-okhttp/1.27.2'] 'YourApp/1.0.0 grpc-java-okhttp/1.27.2']
- id: name - id: user_agent.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -24,7 +23,7 @@ groups:
a user-agent for non-browser products, such as microservices with multiple names/versions inside the a user-agent for non-browser products, such as microservices with multiple names/versions inside the
`user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with `user_agent.original`, the most significant name SHOULD be selected. In such a scenario it should align with
`user_agent.version` `user_agent.version`
- id: version - id: user_agent.version
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,23 +1,22 @@
groups: groups:
- id: registry.user - id: registry.user
prefix: user
type: attribute_group type: attribute_group
display_name: User Attributes display_name: User Attributes
brief: "Describes information about the user." brief: "Describes information about the user."
attributes: attributes:
- id: email - id: user.email
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
User email address. User email address.
examples: ['a.einstein@example.com'] examples: ['a.einstein@example.com']
- id: full_name - id: user.full_name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
User's full name User's full name
examples: ['Albert Einstein'] examples: ['Albert Einstein']
- id: hash - id: user.hash
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -25,19 +24,19 @@ groups:
note: > note: >
Useful if `user.id` or `user.name` contain confidential information and cannot be used. Useful if `user.id` or `user.name` contain confidential information and cannot be used.
examples: ['364fc68eaf4c8acec74a4e52d7d1feaa'] examples: ['364fc68eaf4c8acec74a4e52d7d1feaa']
- id: id - id: user.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Unique identifier of the user. Unique identifier of the user.
examples: ['S-1-5-21-202424912787-2692429404-2351956786-1000'] examples: ['S-1-5-21-202424912787-2692429404-2351956786-1000']
- id: name - id: user.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
Short name or login/username of the user. Short name or login/username of the user.
examples: ['a.einstein'] examples: ['a.einstein']
- id: roles - id: user.roles
type: string[] type: string[]
stability: experimental stability: experimental
brief: > brief: >

View File

@ -3,9 +3,8 @@ groups:
type: attribute_group type: attribute_group
brief: Describes V8 JS Engine Runtime related attributes. brief: Describes V8 JS Engine Runtime related attributes.
display_name: V8 JS Attributes display_name: V8 JS Attributes
prefix: v8js
attributes: attributes:
- id: gc.type - id: v8js.gc.type
stability: experimental stability: experimental
brief: The type of garbage collection. brief: The type of garbage collection.
type: type:
@ -26,7 +25,7 @@ groups:
value: 'weakcb' value: 'weakcb'
brief: 'Weak Callbacks (Process Weak Callbacks).' brief: 'Weak Callbacks (Process Weak Callbacks).'
stability: experimental stability: experimental
- id: heap.space.name - id: v8js.heap.space.name
stability: experimental stability: experimental
brief: The name of the space type of heap memory. brief: The name of the space type of heap memory.
note: > note: >

View File

@ -1,12 +1,11 @@
groups: groups:
- id: registry.vcs.repository - id: registry.vcs.repository
prefix: vcs.repository
type: attribute_group type: attribute_group
brief: > brief: >
This group defines the attributes for This group defines the attributes for
[Version Control Systems (VCS)](https://en.wikipedia.org/wiki/Version_control). [Version Control Systems (VCS)](https://en.wikipedia.org/wiki/Version_control).
attributes: attributes:
- id: url.full - id: vcs.repository.url.full
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -18,7 +17,7 @@ groups:
"https://github.com/opentelemetry/open-telemetry-collector-contrib", "https://github.com/opentelemetry/open-telemetry-collector-contrib",
"https://gitlab.com/my-org/my-project/my-projects-project/repo", "https://gitlab.com/my-org/my-project/my-projects-project/repo",
] ]
- id: ref.name - id: vcs.repository.ref.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -26,7 +25,7 @@ groups:
[reference](https://git-scm.com/docs/gitglossary#def_ref) such as [reference](https://git-scm.com/docs/gitglossary#def_ref) such as
**branch** or **tag** in the repository. **branch** or **tag** in the repository.
examples: ["my-feature-branch", "tag-1-test"] examples: ["my-feature-branch", "tag-1-test"]
- id: ref.type - id: vcs.repository.ref.type
type: type:
members: members:
- id: branch - id: branch
@ -41,7 +40,7 @@ groups:
brief: > brief: >
The type of the [reference](https://git-scm.com/docs/gitglossary#def_ref) in the repository. The type of the [reference](https://git-scm.com/docs/gitglossary#def_ref) in the repository.
examples: ["branch", "tag"] examples: ["branch", "tag"]
- id: ref.revision - id: vcs.repository.ref.revision
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -64,7 +63,7 @@ groups:
"123", "123",
"HEAD", "HEAD",
] ]
- id: change.title - id: vcs.repository.change.title
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
@ -77,7 +76,7 @@ groups:
"feat: add my new feature", "feat: add my new feature",
"[chore] update dependency", "[chore] update dependency",
] ]
- id: change.id - id: vcs.repository.change.id
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,24 +1,23 @@
groups: groups:
- id: registry.webengine - id: registry.webengine
prefix: webengine
type: attribute_group type: attribute_group
display_name: Web Engine Attributes display_name: Web Engine Attributes
brief: > brief: >
This document defines the attributes used to describe the packaged software running the application code. This document defines the attributes used to describe the packaged software running the application code.
attributes: attributes:
- id: name - id: webengine.name
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The name of the web engine. The name of the web engine.
examples: ['WildFly'] examples: ['WildFly']
- id: version - id: webengine.version
type: string type: string
stability: experimental stability: experimental
brief: > brief: >
The version of the web engine. The version of the web engine.
examples: ['21.0.0'] examples: ['21.0.0']
- id: description - id: webengine.description
type: string type: string
stability: experimental stability: experimental
brief: > brief: >

View File

@ -1,6 +1,5 @@
groups: groups:
- id: android - id: android
prefix: android
type: resource type: resource
brief: > brief: >
The Android platform on which the Android application is running. The Android platform on which the Android application is running.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: browser - id: browser
prefix: browser
type: resource type: resource
brief: > brief: >
The web browser in which the application represented by the resource is running. The web browser in which the application represented by the resource is running.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: cloud - id: cloud
prefix: cloud
type: resource type: resource
brief: > brief: >
A cloud environment (e.g. GCP, Azure, AWS) A cloud environment (e.g. GCP, Azure, AWS)

View File

@ -1,6 +1,5 @@
groups: groups:
- id: container - id: container
prefix: container
type: resource type: resource
brief: > brief: >
A container instance. A container instance.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: device - id: device
prefix: device
type: resource type: resource
brief: > brief: >
The device on which the process represented by this resource is running. The device on which the process represented by this resource is running.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: faas_resource - id: faas_resource
prefix: faas
type: resource type: resource
brief: > brief: >
A serverless instance. A serverless instance.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: host - id: host
prefix: host
type: resource type: resource
brief: > brief: >
A host is defined as a computing instance. For example, physical servers, virtual machines, switches or disk array. A host is defined as a computing instance. For example, physical servers, virtual machines, switches or disk array.
@ -18,7 +17,6 @@ groups:
requirement_level: opt_in requirement_level: opt_in
- id: host.cpu - id: host.cpu
prefix: host.cpu
type: resource type: resource
brief: > brief: >
A host's CPU information A host's CPU information

View File

@ -1,6 +1,5 @@
groups: groups:
- id: k8s.cluster - id: k8s.cluster
prefix: k8s.cluster
type: resource type: resource
brief: > brief: >
A Kubernetes Cluster. A Kubernetes Cluster.
@ -9,7 +8,6 @@ groups:
- ref: k8s.cluster.uid - ref: k8s.cluster.uid
- id: k8s.node - id: k8s.node
prefix: k8s.node
type: resource type: resource
brief: > brief: >
A Kubernetes Node object. A Kubernetes Node object.
@ -18,7 +16,6 @@ groups:
- ref: k8s.node.uid - ref: k8s.node.uid
- id: k8s.namespace - id: k8s.namespace
prefix: k8s.namespace
type: resource type: resource
brief: > brief: >
A Kubernetes Namespace. A Kubernetes Namespace.
@ -26,7 +23,6 @@ groups:
- ref: k8s.namespace.name - ref: k8s.namespace.name
- id: k8s.pod - id: k8s.pod
prefix: k8s.pod
type: resource type: resource
brief: > brief: >
A Kubernetes Pod object. A Kubernetes Pod object.
@ -38,7 +34,6 @@ groups:
requirement_level: opt_in requirement_level: opt_in
- id: k8s.container - id: k8s.container
prefix: k8s.container
type: resource type: resource
brief: > brief: >
A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates). A container in a [PodTemplate](https://kubernetes.io/docs/concepts/workloads/pods/#pod-templates).
@ -48,7 +43,6 @@ groups:
- ref: k8s.container.status.last_terminated_reason - ref: k8s.container.status.last_terminated_reason
- id: k8s.replicaset - id: k8s.replicaset
prefix: k8s.replicaset
type: resource type: resource
brief: > brief: >
A Kubernetes ReplicaSet object. A Kubernetes ReplicaSet object.
@ -57,7 +51,6 @@ groups:
- ref: k8s.replicaset.name - ref: k8s.replicaset.name
- id: k8s.deployment - id: k8s.deployment
prefix: k8s.deployment
type: resource type: resource
brief: > brief: >
A Kubernetes Deployment object. A Kubernetes Deployment object.
@ -66,7 +59,6 @@ groups:
- ref: k8s.deployment.name - ref: k8s.deployment.name
- id: k8s.statefulset - id: k8s.statefulset
prefix: k8s.statefulset
type: resource type: resource
brief: > brief: >
A Kubernetes StatefulSet object. A Kubernetes StatefulSet object.
@ -75,7 +67,6 @@ groups:
- ref: k8s.statefulset.name - ref: k8s.statefulset.name
- id: k8s.daemonset - id: k8s.daemonset
prefix: k8s.daemonset
type: resource type: resource
brief: > brief: >
A Kubernetes DaemonSet object. A Kubernetes DaemonSet object.
@ -84,7 +75,6 @@ groups:
- ref: k8s.daemonset.name - ref: k8s.daemonset.name
- id: k8s.job - id: k8s.job
prefix: k8s.job
type: resource type: resource
brief: > brief: >
A Kubernetes Job object. A Kubernetes Job object.
@ -93,7 +83,6 @@ groups:
- ref: k8s.job.name - ref: k8s.job.name
- id: k8s.cronjob - id: k8s.cronjob
prefix: k8s.cronjob
type: resource type: resource
brief: > brief: >
A Kubernetes CronJob object. A Kubernetes CronJob object.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: os - id: os
prefix: os
type: resource type: resource
brief: > brief: >
The operating system (OS) on which the process represented by this resource is running. The operating system (OS) on which the process represented by this resource is running.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: process - id: process
prefix: process
type: resource type: resource
brief: > brief: >
An operating system process. An operating system process.
@ -25,7 +24,6 @@ groups:
- ref: process.owner - ref: process.owner
- id: process.runtime - id: process.runtime
prefix: process.runtime
type: resource type: resource
brief: > brief: >
The single (language) runtime instance which is monitored. The single (language) runtime instance which is monitored.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: service - id: service
prefix: service
type: resource type: resource
brief: > brief: >
A service instance. A service instance.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: service_experimental - id: service_experimental
prefix: service
type: resource type: resource
brief: > brief: >
A service instance. A service instance.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: session-id - id: session-id
prefix: session
type: attribute_group type: attribute_group
brief: > brief: >
Session is defined as the period of time encompassing all activities performed by the application and the actions Session is defined as the period of time encompassing all activities performed by the application and the actions

View File

@ -335,7 +335,6 @@ groups:
- id: db.cosmosdb - id: db.cosmosdb
type: span type: span
extends: trace.db.common.query_and_collection extends: trace.db.common.query_and_collection
prefix: db.cosmosdb
brief: > brief: >
Attributes for Cosmos DB. Attributes for Cosmos DB.
attributes: attributes:

View File

@ -1,6 +1,5 @@
groups: groups:
- id: faas_span - id: faas_span
prefix: faas
type: span type: span
brief: > brief: >
This semantic convention describes an instance of a function that This semantic convention describes an instance of a function that
@ -22,7 +21,6 @@ groups:
- ref: cloud.resource_id - ref: cloud.resource_id
- id: faas_span.datasource - id: faas_span.datasource
prefix: faas.document
type: span type: span
brief: > brief: >
Semantic Convention for FaaS triggered as a response to some data Semantic Convention for FaaS triggered as a response to some data
@ -48,7 +46,6 @@ groups:
sent to a messaging system. sent to a messaging system.
- id: faas_span.timer - id: faas_span.timer
prefix: faas
type: span type: span
brief: > brief: >
Semantic Convention for FaaS scheduled to be executed regularly. Semantic Convention for FaaS scheduled to be executed regularly.
@ -58,7 +55,6 @@ groups:
- id: faas_span.in - id: faas_span.in
span_kind: server span_kind: server
prefix: faas
type: span type: span
brief: > brief: >
Contains additional attributes for incoming FaaS spans. Contains additional attributes for incoming FaaS spans.
@ -79,7 +75,6 @@ groups:
- id: faas_span.out - id: faas_span.out
span_kind: client span_kind: client
prefix: faas
type: span type: span
brief: > brief: >
Contains additional attributes for outgoing FaaS spans. Contains additional attributes for outgoing FaaS spans.

View File

@ -1,6 +1,5 @@
groups: groups:
- id: aws - id: aws
prefix: aws
type: span type: span
brief: > brief: >
The `aws` conventions apply to operations using the AWS SDK. They map request or response parameters The `aws` conventions apply to operations using the AWS SDK. They map request or response parameters

Some files were not shown because too many files have changed in this diff Show More