![Scala Using with OpenTelemetry Span to automatically end the Span Block](/content/images/size/w720/2022/08/Untitled-1.png)
Scala Using with OpenTelemetry Span to automatically end the Span Block
Past couple of years, I've been spending quite a bit of time with OpenTelemetry
[https://opentelemetry.io/](OTEL). As always, always looking for shortcuts in
code.
One of the things that is always just annoying is that span.end(
[https://opentelemetry.io/docs/instrumentation/java/manual/#create-spans]) just