rama::telemetry::opentelemetry::semantic_conventions::attribute

Constant FAAS_NAME

pub const FAAS_NAME: &'static str;
Expand description

The name of the single function that this runtime instance executes.

§Notes

This is the name of the function as configured/deployed on the FaaS platform and is usually different from the name of the callback function (which may be stored in the code.namespace/code.function span attributes).

For some cloud providers, the above definition is ambiguous. The following definition of function name MUST be used for this attribute (and consequently the span name) for the listed cloud providers/products:

  • Azure: The full name <FUNCAPP>/<FUNC>, i.e., function app name followed by a forward slash followed by the function name (this form can also be seen in the resource JSON for the function). This means that a span attribute MUST be used, as an Azure function app can host multiple functions that would usually share a TracerProvider (see also the cloud.resource_id attribute).

§Examples

  • "my-function"
  • "myazurefunctionapp/some-function-name"