iand675 / hs-opentelemetry

OpenTelemetry support for the Haskell programming language
https://iankduncan.com/projects/opentelemetry
BSD 3-Clause "New" or "Revised" License
75 stars 34 forks source link

Add code position information to inSpan'' #139

Closed Profpatsch closed 4 months ago

Profpatsch commented 4 months ago

Use the CallStack to generate position information in conformance with the Otel spec.

We need to freeze the call stack around inSpan, so that the location information of the calling function context is used. This also applies to the inSpan functions in Trace.Monad.