Appsignal.Span.set_sql

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

Specs

set_sql(t() | nil, String.t()) :: t() | nil

Sets the "appsignal:body" attribute with an SQL query string.

Example

Appsignal.Tracer.root_span()
|> Appsignal.Span.set_sql("SELECT * FROM users")