FaaS conventions: make faas.document.time and faas.time attributes recommended (#2627)
This commit is contained in:
parent
a280dd8b2e
commit
31a6ecd386
|
|
@ -73,7 +73,6 @@ groups:
|
||||||
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: time
|
- id: time
|
||||||
type: string
|
type: string
|
||||||
requirement_level: required
|
|
||||||
brief: >
|
brief: >
|
||||||
A string containing the time when the data was accessed in the
|
A string containing the time when the data was accessed in the
|
||||||
[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)
|
||||||
|
|
@ -111,7 +110,6 @@ groups:
|
||||||
attributes:
|
attributes:
|
||||||
- id: time
|
- id: time
|
||||||
type: string
|
type: string
|
||||||
requirement_level: required
|
|
||||||
brief: >
|
brief: >
|
||||||
A string containing the function invocation time in the
|
A string containing the function invocation time in the
|
||||||
[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)
|
||||||
|
|
|
||||||
|
|
@ -171,14 +171,14 @@ This section describes how to handle the span creation and additional attributes
|
||||||
### Datasource
|
### Datasource
|
||||||
|
|
||||||
A datasource function is triggered as a response to some data source operation such as a database or filesystem read/write.
|
A datasource function is triggered as a response to some data source operation such as a database or filesystem read/write.
|
||||||
For `faas` spans with trigger `datasource`, it is recommended to set the following attributes.
|
FaaS instrumentations that produce `faas` spans with trigger `datasource`, SHOULD use the following set of attributes.
|
||||||
|
|
||||||
<!-- semconv faas_span.datasource -->
|
<!-- semconv faas_span.datasource -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `faas.document.collection` | string | The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. | `myBucketName`; `myDbName` | Required |
|
| `faas.document.collection` | string | The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. | `myBucketName`; `myDbName` | Required |
|
||||||
| `faas.document.operation` | string | Describes the type of the operation that was performed on the data. | `insert` | Required |
|
| `faas.document.operation` | string | Describes the type of the operation that was performed on the data. | `insert` | Required |
|
||||||
| `faas.document.time` | string | A string containing the time when the data was accessed in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). | `2020-01-23T13:47:06Z` | Required |
|
| `faas.document.time` | string | A string containing the time when the data was accessed in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). | `2020-01-23T13:47:06Z` | Recommended |
|
||||||
| `faas.document.name` | string | The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. | `myFile.txt`; `myTableName` | Recommended |
|
| `faas.document.name` | string | The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. | `myFile.txt`; `myTableName` | Recommended |
|
||||||
|
|
||||||
`faas.document.operation` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|
`faas.document.operation` has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.
|
||||||
|
|
@ -208,7 +208,7 @@ A function is scheduled to be executed regularly. The following additional attri
|
||||||
<!-- semconv faas_span.timer -->
|
<!-- semconv faas_span.timer -->
|
||||||
| Attribute | Type | Description | Examples | Requirement Level |
|
| Attribute | Type | Description | Examples | Requirement Level |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `faas.time` | string | A string containing the function invocation time in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). | `2020-01-23T13:47:06Z` | Required |
|
| `faas.time` | string | A string containing the function invocation time in the [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format expressed in [UTC](https://www.w3.org/TR/NOTE-datetime). | `2020-01-23T13:47:06Z` | Recommended |
|
||||||
| `faas.cron` | string | A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). | `0/5 * * * ? *` | Recommended |
|
| `faas.cron` | string | A string containing the schedule period as [Cron Expression](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm). | `0/5 * * * ? *` | Recommended |
|
||||||
<!-- endsemconv -->
|
<!-- endsemconv -->
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue