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

Critical OpenTelemetry Bug in v0.17.0 #490

Open
naman108 opened this issue Nov 5, 2024 · 4 comments
Open

Critical OpenTelemetry Bug in v0.17.0 #490

naman108 opened this issue Nov 5, 2024 · 4 comments

Comments

@naman108
Copy link

naman108 commented Nov 5, 2024

Any project which depends on opentelemetry's resource module will cause viztracer to silently fail. I tried to debug but whenever I get to the end of the resource module the application simply exits silently. Notably, the code below will succeed with viztracer v0.16.3.

Minimal Reproduction:

from viztracer import VizTracer

tracer = VizTracer()
tracer.start()
try:
    print("starting")
    from opentelemetry.sdk import resources

    # app = DPHelloWorld()
except Exception as e:
    print(e)
finally:
    print("done")
    tracer.stop()
    tracer.save("trace.json")
@gaogaotiantian
Copy link
Owner

Which OS and Python version are you using? I can't repro this on my macbook with Python 3.12.6.

@naman108
Copy link
Author

naman108 commented Nov 6, 2024

Windows 11 in python venv with python 3.12.0, I couldn't find a way to get any logs or a stack trace so I wasn't sure how I could debug.

@gaogaotiantian
Copy link
Owner

I don't have my windows machine at hand so I'll need to test it later when I'm back home. Do you have other versions of Python? I can test it but it would be nice to have more information - is this 3.12.0 specific because version .0 often has some weird issues.

@gaogaotiantian
Copy link
Owner

Sorry, I can't reproduce this on Windows either. viztracer==0.17.0 + opentelemetry-sdk==1.28.1 + python 3.12.2. Could you try to upgrade your Python and see if you can still reproduce it?

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