Skip to content

Commit fbb0f7d

Browse files
authored
Merge pull request #10 from kkrieger85/master
Update sentry lib
2 parents a0f1ee4 + abb5483 commit fbb0f7d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+14799
-2
lines changed

app/code/community/Hackathon/LoggerSentry/Model/Sentry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
set_include_path(get_include_path() . PATH_SEPARATOR . realpath(Mage::getBaseDir() .DS.'lib'.DS.'sentry'.DS.'sentry'.DS.'lib'));
4+
35
class Hackathon_LoggerSentry_Model_Sentry extends Zend_Log_Writer_Abstract
46
{
57
/**

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
],
1818
"require": {
1919
"magento-hackathon/magento-composer-installer": "*",
20-
"firegento/logger": "1.*",
21-
"sentry/sentry": "*"
20+
"firegento/logger": "1.*"
2221
},
2322
"extra": {
2423
"magento-root-dir": "./",
@@ -28,6 +27,10 @@
2827
"./app/code/community/Hackathon/LoggerSentry",
2928
"./app/code/community/Hackathon/LoggerSentry"
3029
],
30+
[
31+
"./lib/sentry",
32+
"./lib/sentry"
33+
],
3134
[
3235
"./app/etc/modules/Hackathon_LoggerSentry.xml",
3336
"./app/etc/modules/Hackathon_LoggerSentry.xml"

lib/sentry/sentry/.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/examples export-ignore
2+
/docs export-ignore
3+
/test export-ignore

lib/sentry/sentry/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
*.lock
2+
package.xml
3+
/vendor
4+
.idea
5+
.php_cs.cache
6+
docs/_build
7+
test/clover.xml

lib/sentry/sentry/.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs/_sentryext"]
2+
path = docs/_sentryext
3+
url = https://github.com/getsentry/sentry-doc-support

lib/sentry/sentry/.php_cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
$finder = Symfony\CS\Finder\DefaultFinder::create()
4+
->in(__DIR__)
5+
;
6+
7+
return Symfony\CS\Config\Config::create()
8+
->setUsingCache(true)
9+
->setUsingLinter(true)
10+
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
11+
->finder($finder)
12+
;

lib/sentry/sentry/.scrutinizer.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
tools:
2+
php_sim: false
3+
php_pdepend: true
4+
php_analyzer: true
5+
php_code_coverage: true
6+
external_code_coverage:
7+
timeout: 2400 # There can be another pull request in progress
8+
runs: 6 # PHP 5.3 + PHP 5.4 + PHP 5.5 + PHP 5.6 + PHP 7.0 + PHP 7.1
9+
10+
build:
11+
environment:
12+
php:
13+
version: 5.6.0
14+
redis: false
15+
postgresql: false
16+
mongodb: false
17+
18+
filter:
19+
excluded_paths: [vendor/*, test/*, bin/*, docs/*, examples/*]

lib/sentry/sentry/.travis.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
language: php
2+
sudo: false
3+
4+
php:
5+
- 5.3
6+
- 5.4
7+
- 5.5
8+
- 5.6
9+
- 7.0
10+
- 7.1
11+
- nightly
12+
env:
13+
- REMOVE_XDEBUG="0"
14+
- REMOVE_XDEBUG="1"
15+
16+
matrix:
17+
allow_failures:
18+
- php: hhvm-3.12
19+
- php: nightly
20+
fast_finish: true
21+
include:
22+
- php: hhvm-3.12
23+
env: REMOVE_XDEBUG="0" HHVM="1"
24+
dist: trusty
25+
26+
cache:
27+
directories:
28+
- $HOME/.composer/cache
29+
30+
before_install:
31+
- if [ "$REMOVE_XDEBUG" = "1" ]; then phpenv config-rm xdebug.ini; fi
32+
- composer self-update
33+
34+
install: travis_retry composer install --no-interaction --prefer-dist
35+
36+
script:
37+
- composer phpcs
38+
- composer tests-travis
39+
40+
after_script:
41+
- wget https://scrutinizer-ci.com/ocular.phar
42+
- if [ $(phpenv version-name) = "5.3" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi
43+
- if [ $(phpenv version-name) = "5.4" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi
44+
- if [ $(phpenv version-name) = "5.5" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi
45+
- if [ $(phpenv version-name) = "5.6" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi
46+
- if [ $(phpenv version-name) = "7.0" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi
47+
- if [ $(phpenv version-name) = "7.1" ] && [ "$REMOVE_XDEBUG" = "0" ]; then php ocular.phar code-coverage:upload --format=php-clover test/clover.xml --revision=$TRAVIS_COMMIT; fi

lib/sentry/sentry/AUTHORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
The Sentry PHP SDK was originally written by Michael van Tellingen
2+
and is maintained by the Sentry Team.
3+
4+
http://github.com/getsentry/sentry-php/contributors

lib/sentry/sentry/CHANGELOG.md

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
# CHANGELOG
2+
3+
## Unreleased
4+
5+
## 1.7.1 (2017-08-02)
6+
- Fix of filtering sensitive data when there is an exception with multiple 'values' (#483)
7+
8+
## 1.7.0 (2017-06-07)
9+
10+
- Corrected some issues with argument serialization in stacktraces (#399).
11+
- The default exception handler will now re-raise exceptions when `call_existing` is true and no exception handler is registered (#421).
12+
- Collect `User.ip_address` automatically (#419).
13+
- Added a processor to remove web cookies. It will be enabled by default in `2.0` (#405).
14+
- Added a processor to remove HTTP body data for POST, PUT, PATCH and DELETE requests. It will be enabled by default in `2.0` (#405).
15+
- Added a processor to sanitize HTTP headers (e.g. the Authorization header) (#428).
16+
- Added a processor to remove `pre_context`, `context_line` and `post_context` informations from reported exceptions (#429).
17+
18+
## 1.6.2 (2017-02-03)
19+
20+
- Fixed behavior where fatal errors weren't correctly being reported in most situations.
21+
22+
## 1.6.1 (2016-12-14)
23+
24+
- Correct handling of null in `user_context`.
25+
26+
## 1.6.0 (2016-12-09)
27+
28+
- Improved serialization of certain types to be more restrictive.
29+
- `error_types` can now be configured via `RavenClient`.
30+
- Class serialization has been expanded to include attributes.
31+
- The session extension is no longer required.
32+
- Monolog is no longer a required dependency.
33+
- `user_context` now merges by default.
34+
35+
## 1.5.0 (2016-09-29)
36+
37+
- Added named transaction support.
38+
39+
## 1.4.0 (2016-09-20)
40+
41+
This version primarily overhauls the exception/stacktrace generation to fix
42+
a few bugs and improve the quality of data (#359).
43+
44+
- Added `excluded_app_paths` config.
45+
- Removed `shift_vars` config.
46+
- Correct fatal error handling to only operate on expected types. This also fixes some behavior with the error suppression operator.
47+
- Expose anonymous and similar frames in the stacktrace.
48+
- Default `prefixes` to PHP's include paths.
49+
- Remove `module` usage.
50+
- Better handle empty argument context.
51+
- Correct alignment of filename (current frame) and function (caller frame)
52+
53+
## 1.3.0 (2016-12-19)
54+
55+
- Fixed an issue causing the error suppression operator to not be respected (#335)
56+
- Fixed some serialization behavior (#352)
57+
- Fixed an issue with app paths and trailing slashes (#350)
58+
- Handle non-latin encoding with source code context line (#345)
59+
60+
## 1.2.0 (2016-12-08)
61+
62+
- Handle non-latin encoding in source code and exception values (#342)
63+
- Ensure pending events are sent on shutdown by default (#338)
64+
- Add `captureLastError` helper (#334)
65+
- Dont report duplicate errors with fatal error handler (#334)
66+
- Enforce maximum length for string serialization (#329)
67+
68+
## 1.1.0 (2016-07-30)
69+
70+
- Uncoercable values should no longer prevent exceptions from sending
71+
to the Sentry server.
72+
- `install()` can no longer be called multiple times.
73+
74+
## 1.0.0 (2016-07-28)
75+
76+
- Removed deprecated error codes configuration from ErrorHandler.
77+
- Removed env data from HTTP interface.
78+
- Removed `message` attribute from exceptions.
79+
- appPath and prefixes are now resolved fully.
80+
- Fixed various getter methods requiring invalid args.
81+
- Fixed data mutation with `send_callback`.
82+
83+
## 0.22.0 (2016-06-23)
84+
85+
- Improve handling of encodings.
86+
- Improve resiliency of variable serialization.
87+
- Add 'formatted' attribute to Message interface.
88+
89+
## 0.21.0 (2016-06-10)
90+
91+
- Added `transport` option.
92+
- Added `install()` shortcut.
93+
94+
## 0.20.0 (2016-06-02)
95+
96+
- Handle missing function names on frames.
97+
- Remove suppression operator usage in breadcrumbs buffer.
98+
- Force serialization of context values.
99+
100+
## 0.19.0 (2016-05-27)
101+
102+
- Add `error_reporting` breadcrumb handler.
103+
104+
## 0.18.0 (2016-05-17)
105+
106+
- Remove session from serialized data.
107+
- `send_callback` return value must now be false to prevent capture.
108+
- Add various getter/setter methods for configuration.
109+
110+
## 0.17.0 (2016-05-11)
111+
112+
- Don't attempt to serialize fixed SDK inputs.
113+
- Improvements to breadcrumbs support in Monolog.
114+
115+
## 0.16.0 (2016-05-03)
116+
117+
- Initial breadcrumbs support with Monolog handler.
118+
119+
## 0.15.0 (2016-04-29)
120+
121+
- Fixed some cases where serialization wouldn't happen.
122+
- Added sdk attribute.
123+
124+
## 0.14.0 (2016-04-27)
125+
126+
- Added `prefixes` option for stripping absolute paths.
127+
- Removed `abs_path` from stacktraces.
128+
- Added `app_path` to specify application root for resolving `in_app` on frames.
129+
- Moved Laravel support to `sentry-laravel` project.
130+
- Fixed duplicate stack computation.
131+
- Added `dsn` option to ease configuration.
132+
- Fixed an issue with the curl async transport.
133+
- Improved serialization of values.
134+
135+
## 0.13.0 (2015-09-09)
136+
137+
- Updated API to use new style interfaces.
138+
- Remove session cookie in default processor.
139+
- Expand docs for Laravel, Symfony2, and Monolog.
140+
- Default error types can now be set as part of ErrorHandler configuration.
141+
142+
## 0.12.1 (2015-07-26)
143+
144+
- Dont send empty values for various context.
145+
146+
## 0.12.0 (2015-05-19)
147+
148+
- Bumped protocol version to 6.
149+
- Fixed an issue with the async curl handler (GH-216).
150+
- Removed UDP transport.
151+
152+
## 0.11.0 (2015-03-25)
153+
154+
- New configuration parameter: `release`
155+
- New configuration parameter: `message_limit`
156+
- New configuration parameter: `curl_ssl_version`
157+
- New configuration parameter: `curl_ipv4`
158+
- New configuration parameter: `verify_ssl`
159+
- Updated remote endpoint to use modern project-based path.
160+
- Expanded default sanitizer support to include `auth_pw` attribute.
161+
162+
## 0.10.0 (2014-09-03)
163+
164+
- Added a default certificate bundle which includes common root CA's as well as getsentry.com's CA.
165+
166+
## 0.9.1 (2014-08-26)
167+
168+
- Change default curl connection to `sync`
169+
- Improve CLI reporting
170+
171+
## 0.9.0 (2014-06-04)
172+
173+
- Protocol version 5
174+
- Default to asynchronous HTTP handler using curl_multi.
175+
176+
177+
(For previous versions see the commit history)

0 commit comments

Comments
 (0)