Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add telemetry, OTEL, logger... #74

Open
samber opened this issue May 5, 2024 · 1 comment
Open

Add telemetry, OTEL, logger... #74

samber opened this issue May 5, 2024 · 1 comment
Milestone

Comments

@samber
Copy link
Owner

samber commented May 5, 2024

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
@gaby
Copy link

gaby commented Jul 10, 2024

@samber This would add a bunch of dependencies though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants