Skip to content

Implement f-string parsing #4156

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

Open
antonpirker opened this issue Mar 18, 2025 · 0 comments
Open

Implement f-string parsing #4156

antonpirker opened this issue Mar 18, 2025 · 0 comments

Comments

@antonpirker
Copy link
Member

Currently the logs API is like this:

my_local_var=123
sentry_logging.warn("This is the value {val}", val=my_local_var)

This is very similar to Python f-string format, but not exactly the same. We also want to make this work in Sentry logging:

my_local_var=123
sentry_logging.warn(f"This is the value {my_local_var}")

I we want to parse variables from f-strings here is how other libs do this:

@antonpirker antonpirker changed the title Implement f-string parsing. Implement f-string parsing Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants