Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name":"Sentry",
"author":"Ortus Solutions <[email protected]>",
"version":"2.1.0",
"version":"2.1.1",
"slug":"sentry",
"type":"modules",
"homepage":"https://github.com/coldbox-modules/sentry",
Expand Down Expand Up @@ -32,7 +32,7 @@
"*.md"
],
"scripts":{
"build:module":"task run taskFile=build/Build.cfc :projectName=`package show slug` :version=`package show version`",
"build:module":"task run taskFile=build/Build.cfc :projectName=`package show slug` :version=`package show version`",
"build:docs":"task run taskFile=build/Build.cfc target=docs :projectName=`package show slug` :version=`package show version`",
"install:dependencies":"install --force && cd test-harness && install --force",
"release":"recipe build/release.boxr",
Expand Down
17 changes: 11 additions & 6 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.1.0] - 2024-11-12

### Added

* Added support for passing through [`traceparent` headers](https://www.w3.org/TR/trace-context/#traceparent-header) and, optionally, traceparent data provided by [the `cbotel` module](https://forgebox.io/view/cbotel)
* Added `onSentryEventCapture` interception in Coldbox context to allow contributions to tags and user info
- Added support for passing through [`traceparent` headers](https://www.w3.org/TR/trace-context/#traceparent-header) and, optionally, traceparent data provided by [the `cbotel` module](https://forgebox.io/view/cbotel)
- Added `onSentryEventCapture` interception in Coldbox context to allow contributions to tags and user info

## [2.0.0] - 2024-06-10

### Changed

* Update the event structure to the new format Sentry has adopted for their official SDKs
* Don't send cookie and form scope data by default
- Update the event structure to the new format Sentry has adopted for their official SDKs
- Don't send cookie and form scope data by default

### Added

* Add support for the new `/api/{project_id}/envelope` endpoint Sentry has adopted for sending events
- Add support for the new `/api/{project_id}/envelope` endpoint Sentry has adopted for sending events

## [1.0.0] - 2019-05-10

### Added

* Create first module version
- Create first module version

[Unreleased]: https://github.com/coldbox-modules/sentry/compare/v2.1.0...HEAD

[2.1.0]: https://github.com/coldbox-modules/sentry/compare/57864cae5969ad38eee194db5a6b2798e91967b3...v2.1.0
3 changes: 3 additions & 0 deletions models/SentryService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ component accessors=true singleton {
* Constructor
*/
function init( struct settings = {} ){
// make sure coldbox is a true null for Lucee
variables.coldbox = javacast( "null", 0 );
setSettings( arguments.settings );
// If we have settings passed to the init, this is likely not
// in WireBox context so just configure now
if ( arguments.settings.count() ) {
configure();
}

setModuleConfig( { version : "2.0.0" } );

return this;
Expand Down