opentelemetry-erlang-contrib
opentelemetry-erlang-contrib copied to clipboard
fix: Avoid ignoring Parent Span
trafficstars
As discussed on #508, Oban.JobHandler seems not to be setting the right span, ignoring the parent, causing a break in the traces for a flow. This fix allows the parent span to be included in the traces.
In case a parent span doesn't exist, it'll have the value :undefined, exactly what has been set by default in the current code.