getsentry / sentry-python

The official Python SDK for Sentry.io
https://sentry.io/for/python/
MIT License
1.86k stars 486 forks source link

SDK creates subprocess breadcrumbs for ctypes.util.find_library #3487

Open vnznznz opened 1 week ago

vnznznz commented 1 week ago

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.12.0

Steps to Reproduce

  1. Have python project that utilizes ctypes.util.find_library from the python stdlib (in our case it's used by a dependency)
  2. Have python project log an exception to sentry

Expected Result

Sentry issue contains mostly information that's relevant to the error

Actual Result

Sentry issue has a lot of subprocess breadcrumbs like this that are not relevant to the error:

szokeasaurusrex commented 1 week ago

Hey @vnznznz, could you post a link to a Sentry error that contains the irrelevant breadcrumbs?

vnznznz commented 1 week ago

Hey @vnznznz, could you post a link to a Sentry error that contains the irrelevant breadcrumbs?

I'm afraid I can't publicly share from this project but here's a screenshot

Image

szokeasaurusrex commented 1 week ago

I'm afraid I can't publicly share from this project but here's a screenshot

@vnznznz To clarify, you don't need to make your project public. As a Sentry employee, I can access your issue as long as you provide the URL.

Sharing the URL here only makes the information contained in the URL (e.g. your org slug) public; the issue itself remains inaccessible to anyone outside your org (besides Sentry employees). However, if you would prefer not to publicly share the URL, you can email it to me at daniel.szoke@sentry.io.

vnznznz commented 1 week ago

@vnznznz To clarify, you don't need to make your project public. As a Sentry employee, I can access your issue as long as you provide the URL.

Ah okay, here's the URL https://wube-software.sentry.io/issues/5786400820/

sentrivana commented 1 week ago

Hey @vnznznz, have a look at before_breadcrumb (see docs) -- it's a hook where you get the breadcrumb before it's attached to the event and you can decide to drop it based on the content. Let us know if this works for you.