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

Feature Request: Tracing without modifying the code #465

Open
guettli opened this issue Mar 2, 2021 · 1 comment
Open

Feature Request: Tracing without modifying the code #465

guettli opened this issue Mar 2, 2021 · 1 comment

Comments

@guettli
Copy link

guettli commented Mar 2, 2021

It would be really great, if you could use eliot without modifying the source code.

I would like to provide a list of methods which should create events:

['mymodule.foo.bar', '....]

And call my code via a wrapper:

eliot myscript.py

@itamarst
Copy link
Owner

itamarst commented Mar 3, 2021

This in theory would be possible, especially if one says "and you only support arguments that are encodable to JSON" I suppose, but that's hard to guarantee as code changes. Additionally, there's the risk of breaking code if the wrapper changes semantics.

It also won't trace well with anything async, threaded, or multiprocess without a bunch of extra work.

On the other hand I can think of situations where this might be useful, maybe.

What is your use case for doing this?

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