Update weaver and add missing stability levels to spans, resources and events (#1654)

This commit is contained in:
Liudmila Molkova 2024-12-05 12:57:11 -08:00 committed by GitHub
parent 106f880ccb
commit 4fbc8ec978
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
29 changed files with 69 additions and 2 deletions

View File

@ -10,7 +10,7 @@
"MD040": false, "MD040": false,
}, },
"yaml.schemas": { "yaml.schemas": {
"https://raw.githubusercontent.com/open-telemetry/weaver/v0.9.2/schemas/semconv.schema.json": [ "https://raw.githubusercontent.com/open-telemetry/weaver/v0.11.0/schemas/semconv.schema.json": [
"model/**/*.yaml" "model/**/*.yaml"
] ]
}, },

View File

@ -3,7 +3,7 @@
# Dependabot can keep this file up to date with latest containers. # Dependabot can keep this file up to date with latest containers.
# Weaver is used to generate markdown docs, and enforce policies on the model. # Weaver is used to generate markdown docs, and enforce policies on the model.
FROM otel/weaver:v0.10.0 AS weaver FROM otel/weaver:v0.11.0 AS weaver
# OPA is used to test policies enforced by weaver. # OPA is used to test policies enforced by weaver.
FROM openpolicyagent/opa:0.70.0 AS opa FROM openpolicyagent/opa:0.70.0 AS opa

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.android - id: resource.android
type: resource type: resource
stability: experimental
name: android name: android
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,7 @@
groups: groups:
- id: resource.aws.ecs - id: resource.aws.ecs
type: resource type: resource
stability: experimental
name: aws.ecs name: aws.ecs
brief: > brief: >
Resources used by AWS Elastic Container Service (ECS). Resources used by AWS Elastic Container Service (ECS).

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.aws.eks - id: resource.aws.eks
type: resource type: resource
stability: experimental
name: aws.eks name: aws.eks
brief: > brief: >
Resources used by AWS Elastic Kubernetes Service (EKS). Resources used by AWS Elastic Kubernetes Service (EKS).

View File

@ -1,6 +1,7 @@
groups: groups:
- id: span.aws.lambda - id: span.aws.lambda
type: span type: span
stability: experimental
brief: > brief: >
Span attributes used by AWS Lambda (in addition to general `faas` attributes). Span attributes used by AWS Lambda (in addition to general `faas` attributes).
attributes: attributes:

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.aws.log - id: resource.aws.log
type: resource type: resource
stability: experimental
name: aws.log name: aws.log
brief: > brief: >
Resources specific to Amazon Web Services. Resources specific to Amazon Web Services.

View File

@ -1,6 +1,7 @@
groups: groups:
- id: span.aws.client - id: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
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
@ -32,6 +33,7 @@ groups:
- id: span.dynamodb.batchgetitem.client - id: span.dynamodb.batchgetitem.client
brief: DynamoDB.BatchGetItem brief: DynamoDB.BatchGetItem
extends: span.aws.client extends: span.aws.client
stability: experimental
type: span type: span
span_kind: client span_kind: client
attributes: attributes:
@ -44,6 +46,7 @@ groups:
brief: DynamoDB.BatchWriteItem brief: DynamoDB.BatchWriteItem
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.table_names - ref: aws.dynamodb.table_names
@ -57,6 +60,7 @@ groups:
brief: DynamoDB.CreateTable brief: DynamoDB.CreateTable
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.global_secondary_indexes - ref: aws.dynamodb.global_secondary_indexes
@ -81,6 +85,7 @@ groups:
brief: DynamoDB.DeleteItem brief: DynamoDB.DeleteItem
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.table_names - ref: aws.dynamodb.table_names
@ -97,6 +102,7 @@ groups:
brief: DynamoDB.DeleteTable brief: DynamoDB.DeleteTable
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.table_names - ref: aws.dynamodb.table_names
@ -109,6 +115,7 @@ groups:
brief: DynamoDB.DescribeTable brief: DynamoDB.DescribeTable
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.table_names - ref: aws.dynamodb.table_names
@ -121,6 +128,7 @@ groups:
brief: DynamoDB.GetItem brief: DynamoDB.GetItem
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.table_names - ref: aws.dynamodb.table_names
@ -139,6 +147,7 @@ groups:
brief: DynamoDB.ListTables brief: DynamoDB.ListTables
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.exclusive_start_table - ref: aws.dynamodb.exclusive_start_table
@ -152,6 +161,7 @@ groups:
brief: DynamoDB.PutItem brief: DynamoDB.PutItem
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.table_names - ref: aws.dynamodb.table_names
@ -165,6 +175,7 @@ groups:
brief: DynamoDB.Query brief: DynamoDB.Query
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.scan_forward - ref: aws.dynamodb.scan_forward
@ -193,6 +204,7 @@ groups:
brief: DynamoDB.Scan brief: DynamoDB.Scan
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.segment - ref: aws.dynamodb.segment
@ -228,6 +240,7 @@ groups:
extends: span.aws.client extends: span.aws.client
type: span type: span
span_kind: client span_kind: client
stability: experimental
attributes: attributes:
- ref: aws.dynamodb.table_names - ref: aws.dynamodb.table_names
requirement_level: recommended requirement_level: recommended
@ -243,6 +256,7 @@ groups:
brief: DynamoDB.UpdateTable brief: DynamoDB.UpdateTable
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
attributes: attributes:
- ref: aws.dynamodb.attribute_definitions - ref: aws.dynamodb.attribute_definitions
@ -264,6 +278,7 @@ groups:
- id: span.aws.s3.client - id: span.aws.s3.client
extends: span.aws.client extends: span.aws.client
type: span type: span
stability: experimental
span_kind: client span_kind: client
brief: "Attributes that exist for S3 request types." brief: "Attributes that exist for S3 request types."
attributes: attributes:

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.browser - id: resource.browser
type: resource type: resource
stability: experimental
name: browser name: browser
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,7 @@
groups: groups:
- id: resource.cloud - id: resource.cloud
type: resource type: resource
stability: experimental
name: cloud name: cloud
brief: > brief: >
A cloud environment (e.g. GCP, Azure, AWS) A cloud environment (e.g. GCP, Azure, AWS)

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.cloudfoundry.system - id: resource.cloudfoundry.system
type: resource type: resource
stability: experimental
name: cloudfoundry.system name: cloudfoundry.system
brief: > brief: >
The system component which is monitored. The system component which is monitored.
@ -9,6 +10,7 @@ groups:
- ref: cloudfoundry.system.instance.id - ref: cloudfoundry.system.instance.id
- id: resource.cloudfoundry.app - id: resource.cloudfoundry.app
type: resource type: resource
stability: experimental
name: cloudfoundry.app name: cloudfoundry.app
brief: > brief: >
The application which is monitored. The application which is monitored.
@ -17,6 +19,7 @@ groups:
- ref: cloudfoundry.app.name - ref: cloudfoundry.app.name
- id: resource.cloudfoundry.space - id: resource.cloudfoundry.space
type: resource type: resource
stability: experimental
name: cloudfoundry.space name: cloudfoundry.space
brief: > brief: >
The space of the application which is monitored. The space of the application which is monitored.
@ -25,6 +28,7 @@ groups:
- ref: cloudfoundry.space.name - ref: cloudfoundry.space.name
- id: resource.cloudfoundry.org - id: resource.cloudfoundry.org
type: resource type: resource
stability: experimental
name: cloudfoundry.org name: cloudfoundry.org
brief: > brief: >
The organization of the application which is monitored. The organization of the application which is monitored.
@ -33,6 +37,7 @@ groups:
- ref: cloudfoundry.org.name - ref: cloudfoundry.org.name
- id: resource.cloudfoundry.process - id: resource.cloudfoundry.process
type: resource type: resource
stability: experimental
name: cloudfoundry.process name: cloudfoundry.process
brief: > brief: >
The process of the application which is monitored. The process of the application which is monitored.

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.container - id: resource.container
type: resource type: resource
stability: experimental
name: container name: container
brief: > brief: >
A container instance. A container instance.

View File

@ -152,6 +152,7 @@ groups:
- id: span.db.postgresql.client - id: span.db.postgresql.client
type: span type: span
stability: experimental
extends: span.db.sql.client extends: span.db.sql.client
span_kind: client span_kind: client
brief: > brief: >
@ -186,6 +187,7 @@ groups:
- id: span.db.mysql.client - id: span.db.mysql.client
type: span type: span
stability: experimental
extends: span.db.sql.client extends: span.db.sql.client
span_kind: client span_kind: client
brief: > brief: >
@ -212,6 +214,7 @@ groups:
- id: span.db.mariadb.client - id: span.db.mariadb.client
type: span type: span
stability: experimental
extends: span.db.sql.client extends: span.db.sql.client
span_kind: client span_kind: client
brief: > brief: >

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.deployment - id: resource.deployment
type: resource type: resource
stability: experimental
name: deployment name: deployment
brief: > brief: >
The software deployment. The software deployment.

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.device - id: resource.device
type: resource type: resource
stability: experimental
name: device name: device
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,7 @@
groups: groups:
- id: resource.faas - id: resource.faas
type: resource type: resource
stability: experimental
name: faas name: faas
brief: > brief: >
A serverless instance. A serverless instance.

View File

@ -1,6 +1,7 @@
groups: groups:
- id: span.faas - id: span.faas
type: span type: span
stability: experimental
brief: > brief: >
This semantic convention describes an instance of a function that This semantic convention describes an instance of a function that
runs without provisioning or managing of servers (also known as runs without provisioning or managing of servers (also known as
@ -22,6 +23,7 @@ groups:
- id: span.faas.datasource - id: span.faas.datasource
type: span type: span
stability: experimental
brief: > brief: >
Semantic Convention for FaaS triggered as a response to some data Semantic Convention for FaaS triggered as a response to some data
source operation such as a database or filesystem read/write. source operation such as a database or filesystem read/write.
@ -35,6 +37,7 @@ groups:
- id: span.faas.timer - id: span.faas.timer
type: span type: span
stability: experimental
brief: > brief: >
Semantic Convention for FaaS scheduled to be executed regularly. Semantic Convention for FaaS scheduled to be executed regularly.
attributes: attributes:
@ -44,6 +47,7 @@ groups:
- id: span.faas.server - id: span.faas.server
span_kind: server span_kind: server
type: span type: span
stability: experimental
brief: > brief: >
Contains additional attributes for incoming FaaS spans. Contains additional attributes for incoming FaaS spans.
attributes: attributes:
@ -64,6 +68,7 @@ groups:
- id: span.faas.client - id: span.faas.client
span_kind: client span_kind: client
type: span type: span
stability: experimental
brief: > brief: >
Contains additional attributes for outgoing FaaS spans. Contains additional attributes for outgoing FaaS spans.
attributes: attributes:

View File

@ -2,6 +2,7 @@ groups:
- id: event.feature_flag.evaluation - id: event.feature_flag.evaluation
type: event type: event
name: feature_flag.evaluation name: feature_flag.evaluation
stability: experimental
brief: > brief: >
Defines feature flag evaluation as an event. Defines feature flag evaluation as an event.
note: > note: >

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.gcp.cloud_run - id: resource.gcp.cloud_run
type: resource type: resource
stability: experimental
name: gcp.cloud_run name: gcp.cloud_run
brief: > brief: >
Resource used by Google Cloud Run. Resource used by Google Cloud Run.

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.gcp.gce - id: resource.gcp.gce
type: resource type: resource
stability: experimental
name: gcp.gce name: gcp.gce
brief: > brief: >
Resources used by Google Compute Engine (GCE). Resources used by Google Compute Engine (GCE).

View File

@ -1,6 +1,7 @@
groups: groups:
- id: span.graphql.server - id: span.graphql.server
type: span type: span
stability: experimental
span_kind: server span_kind: server
brief: > brief: >
This document defines semantic conventions to apply when instrumenting the GraphQL implementation. They map This document defines semantic conventions to apply when instrumenting the GraphQL implementation. They map

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.heroku - id: resource.heroku
type: resource type: resource
stability: experimental
name: heroku name: heroku
brief: > brief: >
[Heroku dyno metadata](https://devcenter.heroku.com/articles/dyno-metadata) [Heroku dyno metadata](https://devcenter.heroku.com/articles/dyno-metadata)

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.host - id: resource.host
type: resource type: resource
stability: experimental
name: host name: host
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.
@ -45,6 +46,7 @@ groups:
- id: resource.host.cpu - id: resource.host.cpu
type: resource type: resource
stability: experimental
name: host.cpu name: host.cpu
brief: > brief: >
A host's CPU information A host's CPU information

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.k8s.cluster - id: resource.k8s.cluster
type: resource type: resource
stability: experimental
name: k8s.cluster name: k8s.cluster
brief: > brief: >
A Kubernetes Cluster. A Kubernetes Cluster.
@ -10,6 +11,7 @@ groups:
- id: resource.k8s.node - id: resource.k8s.node
type: resource type: resource
stability: experimental
name: k8s.node name: k8s.node
brief: > brief: >
A Kubernetes Node object. A Kubernetes Node object.
@ -19,6 +21,7 @@ groups:
- id: resource.k8s.namespace - id: resource.k8s.namespace
type: resource type: resource
stability: experimental
name: k8s.namespace name: k8s.namespace
brief: > brief: >
A Kubernetes Namespace. A Kubernetes Namespace.
@ -27,6 +30,7 @@ groups:
- id: resource.k8s.pod - id: resource.k8s.pod
type: resource type: resource
stability: experimental
name: k8s.pod name: k8s.pod
brief: > brief: >
A Kubernetes Pod object. A Kubernetes Pod object.
@ -39,6 +43,7 @@ groups:
- id: resource.k8s.container - id: resource.k8s.container
type: resource type: resource
stability: experimental
name: k8s.container name: k8s.container
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).
@ -49,6 +54,7 @@ groups:
- id: resource.k8s.replicaset - id: resource.k8s.replicaset
type: resource type: resource
stability: experimental
name: k8s.replicaset name: k8s.replicaset
brief: > brief: >
A Kubernetes ReplicaSet object. A Kubernetes ReplicaSet object.
@ -58,6 +64,7 @@ groups:
- id: resource.k8s.deployment - id: resource.k8s.deployment
type: resource type: resource
stability: experimental
name: k8s.deployment name: k8s.deployment
brief: > brief: >
A Kubernetes Deployment object. A Kubernetes Deployment object.
@ -67,6 +74,7 @@ groups:
- id: resource.k8s.statefulset - id: resource.k8s.statefulset
type: resource type: resource
stability: experimental
name: k8s.statefulset name: k8s.statefulset
brief: > brief: >
A Kubernetes StatefulSet object. A Kubernetes StatefulSet object.
@ -76,6 +84,7 @@ groups:
- id: resource.k8s.daemonset - id: resource.k8s.daemonset
type: resource type: resource
stability: experimental
name: k8s.daemonset name: k8s.daemonset
brief: > brief: >
A Kubernetes DaemonSet object. A Kubernetes DaemonSet object.
@ -85,6 +94,7 @@ groups:
- id: resource.k8s.job - id: resource.k8s.job
type: resource type: resource
stability: experimental
name: k8s.job name: k8s.job
brief: > brief: >
A Kubernetes Job object. A Kubernetes Job object.
@ -94,6 +104,7 @@ groups:
- id: resource.k8s.cronjob - id: resource.k8s.cronjob
type: resource type: resource
stability: experimental
name: k8s.cronjob name: k8s.cronjob
brief: > brief: >
A Kubernetes CronJob object. A Kubernetes CronJob object.

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.os - id: resource.os
type: resource type: resource
stability: experimental
name: os name: os
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

@ -2,6 +2,7 @@ groups:
- id: resource.otel.scope - id: resource.otel.scope
# This should not be a resource, but an attribute group. # This should not be a resource, but an attribute group.
type: resource type: resource
stability: experimental
name: otel.scope name: otel.scope
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:

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.process - id: resource.process
type: resource type: resource
stability: experimental
name: process name: process
brief: > brief: >
An operating system process. An operating system process.
@ -27,6 +28,7 @@ groups:
- id: resource.process.runtime - id: resource.process.runtime
type: resource type: resource
stability: experimental
name: process.runtime name: process.runtime
brief: > brief: >
The single (language) runtime instance which is monitored. The single (language) runtime instance which is monitored.

View File

@ -27,6 +27,7 @@ groups:
- id: span.rpc.client - id: span.rpc.client
type: span type: span
stability: experimental
brief: 'This document defines semantic conventions for remote procedure call client spans.' brief: 'This document defines semantic conventions for remote procedure call client spans.'
extends: rpc extends: rpc
span_kind: client span_kind: client
@ -40,6 +41,7 @@ groups:
- id: span.rpc.server - id: span.rpc.server
type: span type: span
stability: experimental
extends: rpc extends: rpc
span_kind: server span_kind: server
brief: 'Semantic Convention for RPC server spans' brief: 'Semantic Convention for RPC server spans'
@ -61,6 +63,7 @@ groups:
- id: span.rpc.grpc - id: span.rpc.grpc
type: span type: span
stability: experimental
extends: rpc extends: rpc
brief: 'Tech-specific attributes for gRPC.' brief: 'Tech-specific attributes for gRPC.'
attributes: attributes:
@ -76,6 +79,7 @@ groups:
- id: span.rpc.jsonrpc - id: span.rpc.jsonrpc
type: span type: span
stability: experimental
extends: rpc extends: rpc
brief: 'Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/).' brief: 'Tech-specific attributes for [JSON RPC](https://www.jsonrpc.org/).'
attributes: attributes:
@ -121,6 +125,7 @@ groups:
- id: span.rpc.connect_rpc - id: span.rpc.connect_rpc
type: span type: span
stability: experimental
extends: rpc extends: rpc
brief: 'Tech-specific attributes for Connect RPC.' brief: 'Tech-specific attributes for Connect RPC.'
attributes: attributes:

View File

@ -1,6 +1,7 @@
groups: groups:
- id: resource.webengine - id: resource.webengine
type: resource type: resource
stability: experimental
name: webengine name: webengine
brief: > brief: >
Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime. Resource describing the packaged software running the application code. Web engines are typically executed using process.runtime.