Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better WooCommerce tagging #80

Open
1 task done
pmgarman opened this issue Nov 7, 2024 · 0 comments
Open
1 task done

Add better WooCommerce tagging #80

pmgarman opened this issue Nov 7, 2024 · 0 comments
Labels
help wanted type:enhancement New feature or request.

Comments

@pmgarman
Copy link

pmgarman commented Nov 7, 2024

Is your enhancement related to a problem? Please describe.

Sort of - I'm trying to inspect requests to wc-ajax, and they aren't being tagged separately

Designs

In the code below, we could add within the DOING_AJAX a check for WC_DOING_AJAX and if set, make the request wc-ajax? Then in other areas ensuring the different wc ajax requests are grouped as transactions.

			// Set Ajax/CLI/CRON/Gearman/Web
			if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
				$req_type = 'ajax';
			} elseif ( defined( 'DOING_CRON' ) && DOING_CRON ) {
				$req_type = 'cron';
			} elseif ( defined( 'WP_CLI' ) && WP_CLI ) {
				$req_type = 'cli';
			} elseif ( defined( 'WP_GEARS' ) && WP_GEARS ) {
				$req_type = 'gearman';
			} else {
				$req_type = 'web';
			}

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@pmgarman pmgarman added the type:enhancement New feature or request. label Nov 7, 2024
@jeffpaul jeffpaul added this to the Future Release milestone Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted type:enhancement New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants