-
Notifications
You must be signed in to change notification settings - Fork 888
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
proposal for cloud provider-specific resource semantic conventions
- Loading branch information
William Armiros
committed
Oct 15, 2020
1 parent
507884f
commit b158045
Showing
7 changed files
with
132 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
groups: | ||
- id: aws | ||
prefix: aws | ||
brief: > | ||
Resources specific to Amazon Web Services. | ||
attributes: | ||
- id: loggroup.name | ||
type: string | ||
brief: > | ||
The name of the AWS log group an application is writing to. | ||
examples: ['/aws/lambda/my-function', 'opentelemetry-service'] | ||
- id: loggroup.arn | ||
type: string | ||
brief: > | ||
The Amazon Resource Name (ARN) of an AWS log group. | ||
examples: ['arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*'] | ||
note: > | ||
See the | ||
[log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). | ||
- id: logstream.name | ||
type: string | ||
brief: > | ||
The name of the AWS log stream an application is writing to. | ||
examples: ['logs/main/10838bed-421f-43ef-870a-f43feacbbb5b'] | ||
- id: logstream.arn | ||
type: string | ||
brief: > | ||
The ARN of the AWS log stream. | ||
examples: ['arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b'] | ||
note: > | ||
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 this ARN necessarily identifies both a log | ||
group and a log stream. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
groups: | ||
- id: aws.ecs | ||
prefix: aws.ecs | ||
brief: > | ||
Resources used by AWS Elastic Container Service (ECS). | ||
attributes: | ||
- id: container.arn | ||
type: string | ||
brief: > | ||
The 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'] | ||
- id: cluster | ||
type: string | ||
brief: > | ||
The name of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). | ||
examples: ['opentelemetry-cluster'] | ||
- id: launchtype | ||
type: | ||
allow_custom_values: false | ||
members: | ||
- id: EC2 | ||
value: "EC2" | ||
- id: Fargate | ||
value: "Fargate" | ||
brief: > | ||
The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. | ||
examples: ['EC2', 'Fargate'] | ||
- id: task.arn | ||
type: string | ||
brief: > | ||
The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html). | ||
examples: ['arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b'] | ||
- id: task.family | ||
type: string | ||
brief: > | ||
The task definition family this task definition is a member of. | ||
examples: ['opentelemetry-family'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
specification/resource/semantic_conventions/cloud_provider/aws/aws.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# AWS | ||
|
||
**Type:** `aws` | ||
|
||
**Description:** Resources specific to Amazon Web Services. | ||
|
||
<!-- semconv aws --> | ||
| Attribute | Type | Description | Example | Required | | ||
|---|---|---|---|---| | ||
| `aws.loggroup.name` | string | The name of the AWS log group an application is writing to. | `/aws/lambda/my-function`<br>`opentelemetry-service` | No | | ||
| `aws.loggroup.arn` | string | The Amazon Resource Name (ARN) of an AWS log group. [1] | `arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:*` | No | | ||
| `aws.logstream.name` | string | The name of the AWS log stream an application is writing to. | `logs/main/10838bed-421f-43ef-870a-f43feacbbb5b` | No | | ||
| `aws.logstream.arn` | string | The ARN of the AWS log stream. [2] | `arn:aws:logs:us-west-1:123456789012:log-group:/aws/my/group:log-stream:logs/main/10838bed-421f-43ef-870a-f43feacbbb5b` | No | | ||
|
||
**[1]:** See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). | ||
|
||
**[2]:** 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 this ARN necessarily identifies both a log group and a log stream. | ||
<!-- endsemconv --> |
22 changes: 22 additions & 0 deletions
22
specification/resource/semantic_conventions/cloud_provider/aws/ecs.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# AWS ECS | ||
|
||
**type:** `aws.ecs` | ||
|
||
**Description:** Resources used by AWS Elastic Container Service (ECS). | ||
|
||
<!-- semconv aws.ecs --> | ||
| Attribute | Type | Description | Example | Required | | ||
|---|---|---|---|---| | ||
| `aws.ecs.container.arn` | string | The ARN of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html). | `arn:aws:ecs:us-west-1:123456789123:container/32624152-9086-4f0e-acae-1a75b14fe4d9` | No | | ||
| `aws.ecs.cluster` | string | The name of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html). | `opentelemetry-cluster` | No | | ||
| `aws.ecs.launchtype` | string enum | The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. | `EC2`<br>`Fargate` | No | | ||
| `aws.ecs.task.arn` | string | The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html). | `arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b` | No | | ||
| `aws.ecs.task.family` | string | The task definition family this task definition is a member of. | `opentelemetry-family` | No | | ||
|
||
`aws.ecs.launchtype` MUST be one of the following: | ||
|
||
| Value | Description | | ||
|---|---| | ||
| `EC2` | EC2 | | ||
| `Fargate` | Fargate | | ||
<!-- endsemconv --> |