diff --git a/box.json b/box.json index a63dd1c..214667a 100644 --- a/box.json +++ b/box.json @@ -1,7 +1,7 @@ { "name":"Sentry", "author":"Ortus Solutions ", - "version":"2.1.0", + "version":"2.1.1", "slug":"sentry", "type":"modules", "homepage":"https://github.com/coldbox-modules/sentry", @@ -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", diff --git a/changelog.md b/changelog.md index f1ed9ee..1a95ab6 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/models/SentryService.cfc b/models/SentryService.cfc index ec65f9d..d170929 100644 --- a/models/SentryService.cfc +++ b/models/SentryService.cfc @@ -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;