1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-02-05 13:15:41 +02:00

Add semantic convention for faas.coldstart and container.id (#909)

* Add semantic convention for faas coldstart and container ID

* Update Changelog

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
This commit is contained in:
Matej Gera 2020-07-07 18:05:30 +02:00 committed by GitHub
parent eaa94e92b9
commit 5a4b68c7bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Added
- Add `peer.service` semantic attribute. (#898)
- Add semantic convention for `faas.coldstart` and `container.id`. (#909)
### Changed

View File

@ -66,6 +66,10 @@ const (
// A uniquely identifying name for the Container.
ContainerNameKey = kv.Key("container.name")
// Container ID, usually a UUID, as for example used to
// identify Docker containers. The UUID might be abbreviated.
ContainerIDKey = kv.Key("container.id")
// Name of the image the container was built on.
ContainerImageNameKey = kv.Key("container.image.name")

View File

@ -235,6 +235,10 @@ const (
// String containing the execution identifier of the function.
FaaSExecutionKey = kv.Key("faas.execution")
// A boolean indicating that the serverless function is executed
// for the first time (aka cold start).
FaaSColdstartKey = kv.Key("faas.coldstart")
// The name of the source on which the operation was performed.
// For example, in Cloud Storage or S3 corresponds to the bucket name,
// and in Cosmos DB to the database name.