-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add yaml for FaaS and Host resource attributes (#1056)
* Add yaml for FaaS and Host resource attributes * Address feedback Co-authored-by: Armin Ruech <[email protected]>
- Loading branch information
Showing
4 changed files
with
94 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
groups: | ||
- id: faas_resource | ||
prefix: faas | ||
brief: > | ||
A serverless instance. | ||
attributes: | ||
- id: name | ||
type: string | ||
required: always | ||
brief: > | ||
The name of the function being executed. | ||
examples: ['my-function'] | ||
- id: id | ||
type: string | ||
required: always | ||
brief: > | ||
The unique ID of the function being executed. | ||
note: > | ||
For example, in AWS Lambda this field corresponds to the | ||
[ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) | ||
value, in GCP to the URI of the resource, and in Azure to the | ||
[FunctionDirectory](https://github.com/Azure/azure-functions-host/wiki/Retrieving-information-about-the-currently-running-function) | ||
field. | ||
examples: ['arn:aws:lambda:us-west-2:123456789012:function:my-function'] | ||
- id: version | ||
type: string | ||
brief: > | ||
The version string of the function being executed as defined in | ||
[Version Attributes](https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/resource/semantic_conventions#version-attributes). | ||
examples: ['2.0.0'] | ||
- id: instance | ||
type: string | ||
brief: > | ||
The execution environment ID as a string. | ||
examples: ['my-function:instance-0001'] |
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,39 @@ | ||
groups: | ||
- id: host | ||
prefix: host | ||
brief: > | ||
A host is defined as a general computing instance. | ||
attributes: | ||
- id: id | ||
type: string | ||
brief: > | ||
Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider. | ||
examples: ['opentelemetry-test'] | ||
- id: name | ||
type: string | ||
brief: > | ||
Name of the host. On Unix systems, it may contain what the hostname | ||
command returns, or the fully qualified hostname, or another name | ||
specified by the user. | ||
examples: ['opentelemetry-test'] | ||
- id: type | ||
type: string | ||
brief: > | ||
Type of host. For Cloud, this must be the machine type. | ||
examples: ['n1-standard-1'] | ||
- id: image.name | ||
type: string | ||
brief: > | ||
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'] | ||
- id: image.id | ||
type: string | ||
brief: > | ||
VM image ID. For Cloud, this value is from the provider. | ||
examples: ['ami-07b06b442921831e5'] | ||
- id: image.version | ||
type: string | ||
brief: > | ||
The version string of the VM image as defined in | ||
[Version Attributes](https://github.com/open-telemetry/opentelemetry-specification/tree/master/specification/resource/semantic_conventions#version-attributes). | ||
examples: ['0.1'] |
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