Skip to content

Logs: Boolean Parameter is casted to number #92711

Open
@czyber

Description

@czyber

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.29.1

Steps to Reproduce

import sentry_sdk
from sentry_sdk import logger as sentry_logger


sentry_sdk.init(
    ...,
    _experiments={
        "enable_logs": True,
    }

)

sentry_logger.info("Test", label=True)

Expected Result

The parameter is treated as a boolean value, not a number.

Actual Result

Hey, I think the error is not on the sdk side. But i am not sure where to post this instead. Maybe you can route this?

In the Sentry Frontend i get this log:

Image

and searching also sees the label as a number:

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions