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

Tracer, debugger: refactoring to reduce boilerplate #1244

Open
ccoVeille opened this issue Nov 27, 2024 · 0 comments
Open

Tracer, debugger: refactoring to reduce boilerplate #1244

ccoVeille opened this issue Nov 27, 2024 · 0 comments

Comments

@ccoVeille
Copy link
Contributor

I thi k it's important to avoid the boilerplate we have everywhere. I mean code that is copy pasted and is pain to fix like #1214

I think about a short lived struct. Based in what have been done with #1235.

In other frameworks it would be a middleware that is added on demand, without interference with the code.

I'm unsure how easy it would be to consider a middleware

Originally posted by @ccoVeille in #1235 (comment)

The struct could be created via a constructor, that will return a closer func.

I'm unsure yet if it should create the span or not.

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

1 participant