hs-opentelemetry
hs-opentelemetry copied to clipboard
Code detection is flaky when you define helpers for `inSpan`
If you define an inSpan
helper function like:
myInSpan :: HasCallStack => Text -> IO a -> IO a
myInSpan name action = inSpan name defaultSpanArguments action
Then every use of myInSpan
will be registered as the function that the span originates in. This is because inSpan'
uses callerAttributes
which only cares about the caller of inSpan
.