MetrixWire.Instrument.SourceLocation (MetrixWire v0.2.4)

Copy Markdown View Source

Best-effort file:line of the application frame that issued a span, so the dashboard can point at the line that ran a query / HTTP call.

Walks the current process stacktrace and returns the first frame that belongs to the host application — skipping the SDK itself, the standard library, and known instrumentation/driver dependencies (Ecto, Phoenix, Plug, Finch, Tesla, Postgrex, DBConnection, …). Returns nil rather than throwing.

Summary

Functions

The nearest application caller frame as "file.ex:42", or nil.

Functions

nearest()

The nearest application caller frame as "file.ex:42", or nil.