When testing with this library, I want to mock the hub object so I can test its behavior.
Actual Behavior
The Hub object is not easily mockable. There is no interface for it, and the fields are not public, so one cannot instantiate a hub outside of the constructor functions.
Expected Behavior
When testing with this library, I want to mock the hub object so I can test its behavior.
Actual Behavior
The Hub object is not easily mockable. There is no interface for it, and the fields are not public, so one cannot instantiate a hub outside of the constructor functions.
See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/12795 for context.