You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .travis.yml
+13-5
Original file line number
Diff line number
Diff line change
@@ -58,9 +58,17 @@ script:
58
58
# Output the custom loggers command filtering out modules we've accounted for
59
59
- if [[ $TEST_GROUP = magento_23 ]]; then php bin/magento ampersand:log-correlation-id:list-custom-loggers --filter "Klarna\Core\Logger\Logger" --filter "Dotdigitalgroup\Email\Logger\Logger" --filter "Amazon\Core\Logger\Logger" --filter "Amazon\Core\Logger\IpnLogger" ; fi
60
60
- if [[ $TEST_GROUP = magento_latest ]]; then php bin/magento ampersand:log-correlation-id:list-custom-loggers --filter "Yotpo\Yotpo\Model\Logger" --filter "Klarna\Core\Logger\Logger" --filter "Dotdigitalgroup\Email\Logger\Logger" --filter "Amazon\Core\Logger\Logger" --filter "Amazon\Core\Logger\IpnLogger" --filter "Magento\AdminAdobeIms\Logger\AdminAdobeImsLogger" ; fi
61
+
# Test di compilation
62
+
- rm -rf generated
63
+
- composer install
64
+
- php bin/magento module:enable --all
65
+
- php bin/magento setup:di:compile
66
+
61
67
after_failure:
62
-
- test -d ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/var/report/ && for r in ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/var/report/*; do cat $r; done
63
-
- test -f ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/var/log/system.log && grep -v "Broken reference" ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/var/log/system.log
64
-
- test -f ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/var/log/exception.log && cat ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/var/log/exception.log
65
-
- test -f ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/var/log/support_report.log && grep -v "Broken reference" ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/var/log/support_report.log
66
-
- sleep 10;
68
+
- cd ./vendor/ampersand/travis-vanilla-magento/instances/ampmodule/
69
+
- for r in ./var/report/*; do cat $r; done
70
+
- for l in ./var/log/*; do cat $l; done
71
+
- ls -l ./dev/tests/integration/tmp/sandbox*/var
72
+
- for r in ./dev/tests/integration/tmp/sandbox*/var/report/*; do cat $r; done
73
+
- for l in ./dev/tests/integration/tmp/sandbox*/var/log/*; do cat $l; done
Copy file name to clipboardexpand all lines: README.md
+1
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ This cache decorator initialises the identifier which is immutable for the remai
51
51
- The correlation ID is attached to web responses as `X-Log-Correlation-Id` in `src/HttpResponse/HeaderProvider/LogCorrelationIdHeader.php`
52
52
- REST API requests work a bit differently in Magento and attach the header using `src/Plugin/AddToWebApiResponse.php`
53
53
- Monolog files have the correlation ID added into their context section under the key `amp_correlation_id` via `src/Processor/MonologCorrelationId.php`
54
+
- Magento database logs have this identifier added by `src/Plugin/AddToDatabaseLogs.php`
54
55
- New Relic has this added as a custom parameter under the key `amp_correlation_id`
0 commit comments