Appsignal.Span.set_attribute

You're seeing just the function set_attribute, go back to Appsignal.Span module for more information.
Link to this function

set_attribute(span, key, value)

View Source

Specs

set_attribute(
  t() | nil,
  String.t(),
  String.t() | integer() | boolean() | float()
) :: t() | nil

Sets an Appsignal.Span attribute.

Example

Appsignal.Tracer.root_span()
|> Appsignal.Span.set_attribute("appsignal:category", "query.ecto")