Skip to content

feat(transaction): skip data collection for ignored transactions#3872

Open
andoan16 wants to merge 1 commit intonewrelic:mainfrom
andoan16:contribai/feat/skip-data-collection-for-ignored-transac
Open

feat(transaction): skip data collection for ignored transactions#3872
andoan16 wants to merge 1 commit intonewrelic:mainfrom
andoan16:contribai/feat/skip-data-collection-for-ignored-transac

Conversation

@andoan16
Copy link
Copy Markdown

🚀 New Feature

Problem

Modify the Transaction class to check if a transaction is ignored before collecting various types of data (metrics, traces, events, errors, etc.). When a transaction is marked as ignored, skip adding segments, recording metrics, and other data collection operations.

Severity: high
File: lib/transaction/index.js

Solution

Modify the Transaction class to check if a transaction is ignored before collecting various types of data (metrics, traces, events, errors, etc.). When a transaction is marked as ignored, skip adding segments, recording metrics, and other data collection operations.

Changes

  • lib/transaction/index.js (modified)

Description

Please provide a brief description of the changes introduced in this pull request.
What problem does it solve? What is the context of this change?

How to Test

Please describe how you have tested these changes. Have you run the code against an example application?
What steps did you take to ensure that the changes are working correctly?

Related Issues

Please include any related issues or pull requests in this section, using the format Closes #<issue number> or Fixes #<issue number> if applicable.

🤖 About this PR

This pull request was generated by ContribAI, an AI agent
that helps improve open source projects. The change was:

  1. Discovered by automated code analysis
  2. Generated by AI with context-aware code generation
  3. Self-reviewed by AI quality checks

If you have questions or feedback about this PR, please comment below.
We appreciate your time reviewing this contribution!

Closes #506

Modify the Transaction class to check if a transaction is ignored before collecting various types of data (metrics, traces, events, errors, etc.). When a transaction is marked as ignored, skip adding segments, recording metrics, and other data collection operations.

Affected files: index.js

Signed-off-by: andoan16 <33853760+andoan16@users.noreply.github.com>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs PR Review

Development

Successfully merging this pull request may close these issues.

Don't collect data for ignored transactions

3 participants