-
Notifications
You must be signed in to change notification settings - Fork 309
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
fix auto instrumentation of loaded modules without an entrypoint defined #587
fix auto instrumentation of loaded modules without an entrypoint defined #587
Conversation
I'm not sure I understand the difference between this approach and calling |
In my case, |
Were you able to find the reason for this? I would rather have this fixed in |
Yes. I think the reason is The final result is that it doesn't find anything... If you think it's better to fix |
I assumed this would always be set but I guess it can default to
I would definitely prefer that to introducing a new method, at least for now. Thanks for looking into this! |
FYI: I just add I believe this load process has some important things to address (like checking for versions set on the instrumentation object before patching, etc) and I need this fixed to move forward with my integration. Can I open another PR to set |
Sure, please do! I would however suggest adding a default to the instrumenter instead, so that any library without a |
850525e
to
2d3b5bf
Compare
I did just what you suggested and works as expected on my side, thanks! Let me know if it looks good and if possible an eta to know when this could be available on my side. Thanks |
Could you add a test to avoid any regression in the future? For the merge conflict, the issue is that we changed the structure of the project, so the file that should be changed is now |
We don't have a well defined release cycle, but I plan to do a minor release this week. If that ends up not being possible I'll simply release a patch release instead. |
2d3b5bf
to
de19c4f
Compare
de19c4f
to
441abe6
Compare
Thanks @rochdev Was a pleasure 👍 |
The automatic instrumentation works well but enforces the API consumer to follow a fixed lifecycle on his side. The intention of these changes is to add means to instrument already supported modules manually at any point in time.
I believe this PR would close handle issue #560, at least for my case.
Thanks for maintaining this project.
Note: this is a WIP to validate the approach. If the owners think this make sense I will be happy to push the feature during the review process.