Skip to content

Add span attribute to indicate cold starts of Function as a Service executions #649

@arminru

Description

@arminru

The semantic conventions for FaaS spans could be extended with an attribute to indicate function cold starts, i.e., the first execution of an uninitialized function.
This way, the number and rate of cold starts can be tracked and the latency of cold and warm function executions can be compared. This is also commonly reported by commercial APM solutions for FaaS and allows for optimizing execution performance and potentially also cost.
A cold start could, for example, be determined by setting a flag in the initialization routine that is cleared after the first function execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:semantic-conventionsRelated to semantic conventionsspec:traceRelated to the specification/trace directory

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions