otel4s icon indicating copy to clipboard operation
otel4s copied to clipboard

Consider making `SpanFinalizer` ADT classes private

Open iRevive opened this issue 2 months ago • 1 comments

The lifecycle management of a span is incapsulated. Unless you implemented a brand new backend, you don't need access to ADT cases.

So, can we make ADT branches, such as SpanFinalizer.RecordException, private?

- final class RecordException 
+ private final class RecordException 

iRevive avatar Oct 14 '25 05:10 iRevive

What do you think @NthPortal?

iRevive avatar Oct 14 '25 06:10 iRevive