Open samber opened 2 months ago
Debugging IoC is a pain.
An OTEL plugin listening to lifecycle events would be very nice.
Requires #73.
I imagine an API similar to this:
import ( "github.com/samber/do/v2" "github.com/samber/do/observability/otel/v2" ) injector := do.New() otel.Listen(injector, ...) // <-- handling every available hooks
@samber This would add a bunch of dependencies though.
Debugging IoC is a pain.
An OTEL plugin listening to lifecycle events would be very nice.
Requires #73.
I imagine an API similar to this: