aws-xray icon indicating copy to clipboard operation
aws-xray copied to clipboard

E_USER_WARNING are not shown in X-Ray

Open owaincuvelier opened this issue 2 years ago • 7 comments

Investigate an issue where E_USER_WARNING errors are not being surfaced in XRay traces, test code:

php
trigger_error(
'[test]: I am a user warning',
E_USER_WARNING
);

foreach ( false as $foo );

E_USER_WARNING isn't surfaced in the trace. Screenshot 2023-03-07 at 17 22 50

owaincuvelier avatar Mar 14 '23 12:03 owaincuvelier

Possibly related to https://github.com/humanmade/docker-wordpress-php/issues/142

rmccue avatar Mar 23 '23 14:03 rmccue

hey @owaincuvelier . would you be able to provide approx. when are you planning to look at this ticket? thank you!

dianadvorska avatar Apr 03 '23 07:04 dianadvorska

It would be helpful to know if it would be in the next two weeks or not as it affects planning for the sprint we are starting Monday the 10th.

dianadvorska avatar Apr 06 '23 13:04 dianadvorska

@dianadvorska Please note this is an open source/public repository :) We don't provide timelines for bug fixes generally; if this is actively causing problems, please file a support ticket.

rmccue avatar Apr 12 '23 10:04 rmccue

thanks @rmccue . It is causing problems, yes and this ticket is a follow up ticket from a support one :)

dianadvorska avatar Apr 12 '23 11:04 dianadvorska

I'm not able to replicate this on the test environment.

With the code

if ( isset( $_GET['rmccue_cause_warning'] ) ) {
	add_action( 'init', function () {
		trigger_error( 'Test warning', E_USER_WARNING );
	}, 100 );
}

I can get this error to show within the Altis Dashboard on a trace: Screenshot 2023-08-07 at 11 51 21@2x

rmccue avatar Aug 07 '23 10:08 rmccue

Have followed up in support to see if there's more detail about this.

rmccue avatar Aug 07 '23 11:08 rmccue