opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

Remove class exports from log api/sdk

Open dyladan opened this issue 5 months ago • 1 comments
trafficstars

All public exports should be defined by their type. This prevents private class properties and methods from affecting typescript's compatibility check.

For example: the LogRecord class should not be exported, but a LogRecord type should be. Look at the other SDKs to get an idea for the style we are looking for.

dyladan avatar May 30 '25 13:05 dyladan