diff --git a/CHANGELOG.md b/CHANGELOG.md index 02aa9f64..a92ff051 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## [Unreleased](https://github.com/Dynatrace/openkit-native/compare/v3.1.0...HEAD) +### Changed +- `Session.sendBizEvent` will always send an event regardless of the `DataCollectionLevel` + ## 3.1.0 [Release date: 2023-06-05] [GitHub Releases](https://github.com/Dynatrace/openkit-native/releases/tag/v3.1.0) diff --git a/src/protocol/Beacon.cxx b/src/protocol/Beacon.cxx index 13a83bca..2741baad 100644 --- a/src/protocol/Beacon.cxx +++ b/src/protocol/Beacon.cxx @@ -626,11 +626,6 @@ void Beacon::sendBizEvent(const core::UTF8String& type, const openkit::json::Jso throw std::invalid_argument("type.empty() is true"); } - if (!mBeaconConfiguration->getPrivacyConfiguration()->isEventReportingAllowed()) - { - return; - } - if (!isDataCapturingEnabled()) { return; diff --git a/test/protocol/BeaconTest.cxx b/test/protocol/BeaconTest.cxx index 177f4801..065e440b 100644 --- a/test/protocol/BeaconTest.cxx +++ b/test/protocol/BeaconTest.cxx @@ -2681,24 +2681,6 @@ TEST_F(BeaconTest, sendBizEventNotReportedIfDataSendingDisallowed) target->sendBizEvent(eventType, emptyMap); } -TEST_F(BeaconTest, sendBizEventNotReportedIfSendingEventDataDisallowed) -{ - // with - ON_CALL(*mockPrivacyConfiguration, isEventReportingAllowed()) - .WillByDefault(testing::Return(false)); - - Utf8String_t eventType("event type"); - auto emptyMap = std::make_shared(); - auto target = createBeacon()->build(); - - // expect - EXPECT_CALL(*mockBeaconCache, addEventData(testing::_, testing::_, testing::_)) - .Times(0); - - // when, expect no interaction with beacon cache - target->sendBizEvent(eventType, emptyMap); -} - TEST_F(BeaconTest, sendBizEventNotReportIfDisallowedByTrafficControl) { // expect