question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Filter/Limit Transactions Before Send

See original GitHub issue

Hello, I’ve done quite a bit of searching and can’t seem to find what I’m looking for. I enabled performance monitoring by setting traces_sample_rate > 0. However, I’d like to be able to filter some things from being recorded as transactions (health checks endpoints, …). Is it possible to do this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
untitakercommented, Aug 4, 2020

Within a view you can do:

def hello_world():
    with configure_scope() as scope:
        if scope.transaction:
            scope.transaction.sampled = False

That will prevent the view from being sent.

8reactions
kpurdoncommented, Aug 4, 2020

@untitaker thanks for the response. This will resolve my immediate needs. A few ideas/suggestions:

  • it would be great to document this along w/ the performance monitoring docs
  • it would be ideal to have this at the sentry.init level, something like transaction_exclude_list = ["/healhz", ...]
  • if not able to include this in a list it could be great to have a decorator @exclude_sentry_transaction or something

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Filtering for JavaScript | Sentry Documentation
Configure your SDK to filter error events by using the beforeSend ... Called for transaction events beforeSendTransaction(event) { // Modify or drop the ......
Read more >
Read Transaction/s - OpenHIM
filterLimit : The max number of transactions to return ... Before we can send our request to the OpenHIM API we need to...
Read more >
What Is the Advanced Fraud Detection Suite (AFDS)?
Hourly Velocity Filter – Limit the total number of transactions ... in the Pending Review state prior to being sent for authorization.
Read more >
Filtering and Sampling Events for Python
Configure your SDK to filter error events by using the beforeSend callback method and configuring, enabling, or disabling integrations.
Read more >
Fraud Prevention Tools - START Merchant Services
Therefore, if someone is trying to use a stolen card to buy and ship items ... Hourly Velocity Filter – Limit the total...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found