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:
parent
eaa94e92b9
commit
5a4b68c7bf
@ -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
|
||||
|
||||
|
@ -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")
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user