From d46c3618552e70676c92e2a8d1552e77770c0cce Mon Sep 17 00:00:00 2001 From: Armin Ruech Date: Mon, 15 Jun 2020 20:15:02 +0200 Subject: [PATCH] Add span attribute to indicate cold starts of Function as a Service executions (#650) * Add `faas.coldstart` attribute * Update changelog --- CHANGELOG.md | 1 + specification/trace/semantic_conventions/faas.md | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32ac7f3f5f3..58cd0428856 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ the release. ## Unreleased +- Add span attribute to indicate cold starts of Function as a Service executions ([#650](https://github.com/open-telemetry/opentelemetry-specification/pull/650)) - Added conventions for naming of exporter packages - Clarify Tracer vs TracerProvider in tracing API and SDK spec. Most importantly: * Configuration should be stored not per Tracer but in the TracerProvider. diff --git a/specification/trace/semantic_conventions/faas.md b/specification/trace/semantic_conventions/faas.md index 6bf2e677767..11390868ba9 100644 --- a/specification/trace/semantic_conventions/faas.md +++ b/specification/trace/semantic_conventions/faas.md @@ -27,6 +27,7 @@ If Spans following this convention are produced, a Resource of type `faas` MUST |---|---|--| | `faas.trigger` | Type of the trigger on which the function is executed.
It SHOULD be one of the following strings: "datasource", "http", "pubsub", "timer", or "other". | Yes | | `faas.execution` | String containing the execution id of the function. E.g. `af9d5aa4-a685-4c5f-a22b-444f80b3cc28` | No | +| `faas.coldstart` | A boolean indicating that the serverless function is executed for the first time (aka cold start). | No | ### Difference between execution and instance