Skip to content

Implement f-string parsing #4156

Open
@antonpirker

Description

@antonpirker

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions