Skip to content

Commit

Permalink
Merge branch 'main' into feat/messaging.consumer.latency.duration
Browse files Browse the repository at this point in the history
  • Loading branch information
kjschnei001 authored Apr 11, 2024
2 parents 2f1723d + 768a23c commit e570003
Show file tree
Hide file tree
Showing 64 changed files with 867 additions and 396 deletions.
22 changes: 22 additions & 0 deletions .chloggen/564.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Use this changelog template to create an entry for release notes.
#
# If your change doesn't affect end users you should instead start
# your pull request title with [chore] or use the "Skip Changelog" label.

# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: enhancement

# The name of the area of concern in the attributes-registry, (e.g. http, cloud, db)
component: process

# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
note: Add additional attributes to process attribute registry

# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists.
# The values here must be integers.
issues: [564]

# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
4 changes: 4 additions & 0 deletions .chloggen/863.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
change_type: enhancement
component: process
note: Replace constraints with requirement_level in process attributes.
issues: [ 863 ]
4 changes: 4 additions & 0 deletions .chloggen/866.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
change_type: breaking
component: db
note: Rename `db.statement` to `db.query.text` and introduce `db.query.parameter.<key>`
issues: [ 716 ]
4 changes: 4 additions & 0 deletions .chloggen/870.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
change_type: breaking
component: db
note: Renames `db.sql.table`, `db.cassandra.table`, `db.mongodb.collection`, and `db.cosmosdb.container` attributes to `db.collection.name`
issues: [ 870 ]
4 changes: 4 additions & 0 deletions .chloggen/894.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
change_type: breaking
component: db
note: Deprecate the `db.user` attribute.
issues: [ 885 ]
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ body:
- area:dns
- area:enduser
- area:error
- area:event
- area:exception
- area:faas
- area:feature-flag
Expand All @@ -49,6 +50,7 @@ body:
- area:messaging
- area:network
- area:oci
- area:opentracing
- area:os
- area:otel
- area:peer
Expand All @@ -63,6 +65,7 @@ body:
- area:tls
- area:url
- area:user-agent
- area:webengine
# End semconv area list
- type: textarea
attributes:
Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/change_proposal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ body:
- area:dns
- area:enduser
- area:error
- area:event
- area:exception
- area:faas
- area:feature-flag
Expand All @@ -42,6 +43,7 @@ body:
- area:messaging
- area:network
- area:oci
- area:opentracing
- area:os
- area:otel
- area:peer
Expand All @@ -56,6 +58,7 @@ body:
- area:tls
- area:url
- area:user-agent
- area:webengine
# End semconv area list
- type: textarea
attributes:
Expand Down
3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/new-conventions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ body:
- area:dns
- area:enduser
- area:error
- area:event
- area:exception
- area:faas
- area:feature-flag
Expand All @@ -51,6 +52,7 @@ body:
- area:messaging
- area:network
- area:oci
- area:opentracing
- area:os
- area:otel
- area:peer
Expand All @@ -65,6 +67,7 @@ body:
- area:tls
- area:url
- area:user-agent
- area:webengine
# End semconv area list
- type: textarea
attributes:
Expand Down
4 changes: 4 additions & 0 deletions docs/attributes-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The attributes registry is the place where attributes are defined. An attribute

- the `id` (the fully qualified name) of the attribute
- the `type` of the attribute
- the `stability` of the attribute
- a `brief` description of the attribute and optionally a longer `note`
- example values

Expand Down Expand Up @@ -42,6 +43,7 @@ Currently, the following namespaces exist:
* [Disk](disk.md)
* [End user](enduser.md)
* [Error](error.md)
* [Event](event.md)
* [Exception](exception.md)
* [FaaS](faas.md)
* [Feature Flag](feature-flag.md)
Expand All @@ -56,6 +58,7 @@ Currently, the following namespaces exist:
* [Network](network.md)
* [OCI](oci.md)
* [OpenTelemetry](otel.md)
* [OpenTracing](opentracing.md)
* [OS](os.md)
* [Peer](peer.md)
* [Process](process.md)
Expand All @@ -69,5 +72,6 @@ Currently, the following namespaces exist:
* [TLS](tls.md)
* [URL](url.md)
* [User agent](user-agent.md)
* [Webengine](webengine.md)

[developers recommendations]: ../general/attribute-naming.md#recommendations-for-application-developers
77 changes: 77 additions & 0 deletions docs/attributes-registry/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,23 @@

<!-- toc -->

- [AWS Generic Attributes](#aws-generic-attributes)
- [AWS DynamoDB Attributes](#aws-dynamodb-attributes)
- [AWS ECS Attributes](#aws-ecs-attributes)
- [AWS EKS Attributes](#aws-eks-attributes)
- [AWS Lambda Attributes](#aws-lambda-attributes)
- [AWS Logs Attributes](#aws-logs-attributes)
- [AWS S3 Attributes](#aws-s3-attributes)

<!-- tocstop -->

## AWS Generic Attributes
<!-- semconv registry.aws(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `aws.request_id` | string | The AWS request ID as returned in the response headers `x-amz-request-id` or `x-amz-requestid`. | `79b9da39-b7ae-508a-a6bc-864b2829c622`; `C9ER4AJX75574TDJ` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv -->

## AWS DynamoDB Attributes
<!-- semconv registry.aws.dynamodb(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
Expand Down Expand Up @@ -64,6 +74,15 @@
| `aws.eks.cluster.arn` | string | The ARN of an EKS cluster. | `arn:aws:ecs:us-west-2:123456789123:cluster/my-cluster` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv -->

## AWS Lambda Attributes
<!-- semconv registry.aws.lambda(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `aws.lambda.invoked_arn` | string | The full invoked ARN as provided on the `Context` passed to the function (`Lambda-Runtime-Invoked-Function-Arn` header on the `/runtime/invocation/next` applicable). [1] | `arn:aws:lambda:us-east-1:123456:function:myfunction:myalias` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |

**[1]:** This may be different from `cloud.resource_id` if an alias is involved.
<!-- endsemconv -->

## AWS Logs Attributes
<!-- semconv registry.aws.log(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
Expand All @@ -78,4 +97,62 @@
**[2]:** 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 group.

**[3]:** See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream.
<!-- endsemconv -->

## AWS S3 Attributes
<!-- semconv registry.aws.s3(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `aws.s3.bucket` | string | 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. [1] | `some-bucket-name` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `aws.s3.copy_source` | string | The source object (in the form `bucket`/`key`) for the copy operation. [2] | `someFile.yml` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `aws.s3.delete` | string | The delete request container that specifies the objects to be deleted. [3] | `Objects=[{Key=string,VersionId=string},{Key=string,VersionId=string}],Quiet=boolean` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `aws.s3.key` | string | 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. [4] | `someFile.yml` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `aws.s3.part_number` | int | The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. [5] | `3456` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `aws.s3.upload_id` | string | Upload ID that identifies the multipart upload. [6] | `dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ` | ![Experimental](https://img.shields.io/badge/-experimental-blue) |

**[1]:** 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`.

**[2]:** The `copy_source` attribute applies to S3 copy operations and corresponds to the `--copy-source` parameter
of the [copy-object operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html).
This applies in particular to the following operations:

- [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)

**[3]:** 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
[delete-objects operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html).

**[4]:** The `key` attribute is applicable to all object-related S3 operations, i.e. that require the object key as a mandatory parameter.
This applies in particular to the following operations:

- [copy-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/copy-object.html)
- [delete-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html)
- [get-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/get-object.html)
- [head-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/head-object.html)
- [put-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/put-object.html)
- [restore-object](https://docs.aws.amazon.com/cli/latest/reference/s3api/restore-object.html)
- [select-object-content](https://docs.aws.amazon.com/cli/latest/reference/s3api/select-object-content.html)
- [abort-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html)
- [complete-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.html)
- [create-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/create-multipart-upload.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-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html)

**[5]:** The `part_number` attribute is only applicable to the [upload-part](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html)
and [upload-part-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html) operations.
The `part_number` attribute corresponds to the `--part-number` parameter of the
[upload-part operation within the S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part.html).

**[6]:** The `upload_id` attribute applies to S3 multipart-upload operations and corresponds to the `--upload-id` parameter
of the [S3 API](https://docs.aws.amazon.com/cli/latest/reference/s3api/index.html) multipart operations.
This applies in particular to the following operations:

- [abort-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/abort-multipart-upload.html)
- [complete-multipart-upload](https://docs.aws.amazon.com/cli/latest/reference/s3api/complete-multipart-upload.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-copy](https://docs.aws.amazon.com/cli/latest/reference/s3api/upload-part-copy.html)
<!-- endsemconv -->
15 changes: 15 additions & 0 deletions docs/attributes-registry/container.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@

# Container

<!-- toc -->

- [Container Attributes](#container-attributes)
- [Deprecated Container Attributes](#deprecated-container-attributes)

<!-- tocstop -->

## Container Attributes

<!-- semconv registry.container(omit_requirement_level) -->
Expand Down Expand Up @@ -37,3 +44,11 @@ The ID is assinged by the container runtime and can vary in different environmen
| `system` | When CPU is used by the system (host OS) | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
| `kernel` | When tasks of the cgroup are in kernel mode (Linux). When all container processes are in kernel mode (Windows). | ![Experimental](https://img.shields.io/badge/-experimental-blue) |
<!-- endsemconv -->

## Deprecated Container Attributes

<!-- semconv registry.container.deprecated(omit_requirement_level) -->
| Attribute | Type | Description | Examples | Stability |
|---|---|---|---|---|
| `container.labels.<key>` | string | Deprecated, use `container.label` instead. | `container.label.app=nginx` | ![Deprecated](https://img.shields.io/badge/-deprecated-red)<br>Replaced by `container.label`. |
<!-- endsemconv -->
Loading

0 comments on commit e570003

Please sign in to comment.