diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index 0ca0c404c2..4278721570 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -67,7 +67,7 @@
-
+
diff --git a/src/Particular.LicensingComponent.UnitTests/ApprovalFiles/ThroughputCollector_Report_Throughput_Tests.Should_generate_correct_report.approved.txt b/src/Particular.LicensingComponent.UnitTests/ApprovalFiles/ThroughputCollector_Report_Throughput_Tests.Should_generate_correct_report.approved.txt
index df4c5ac553..64bf7b5097 100644
--- a/src/Particular.LicensingComponent.UnitTests/ApprovalFiles/ThroughputCollector_Report_Throughput_Tests.Should_generate_correct_report.approved.txt
+++ b/src/Particular.LicensingComponent.UnitTests/ApprovalFiles/ThroughputCollector_Report_Throughput_Tests.Should_generate_correct_report.approved.txt
@@ -18,6 +18,7 @@
"KnownEndpoint"
],
"Scope": "",
+ "ScopeHash": "",
"DailyThroughputFromBroker": [
{
"DateUTC": "2024-04-24",
@@ -48,6 +49,7 @@
"KnownEndpoint"
],
"Scope": "",
+ "ScopeHash": "",
"DailyThroughputFromBroker": [
{
"DateUTC": "2024-04-24",
@@ -78,6 +80,7 @@
"KnownEndpoint"
],
"Scope": "",
+ "ScopeHash": "",
"DailyThroughputFromBroker": [
{
"DateUTC": "2024-04-24",
@@ -116,6 +119,7 @@
"EndpointIndicators": [],
"UserIndicator": "PlannedToDecommission",
"Scope": "",
+ "ScopeHash": "",
"DailyThroughputFromBroker": [
{
"DateUTC": "2024-04-24",
@@ -136,6 +140,7 @@
"EndpointIndicators": [],
"UserIndicator": "NotNServiceBusEndpoint",
"Scope": "",
+ "ScopeHash": "",
"DailyThroughputFromBroker": [],
"DailyThroughputFromAudit": [],
"DailyThroughputFromMonitoring": []
diff --git a/src/Particular.LicensingComponent/ThroughputCollector.cs b/src/Particular.LicensingComponent/ThroughputCollector.cs
index 925cc203c0..b2632ee92e 100644
--- a/src/Particular.LicensingComponent/ThroughputCollector.cs
+++ b/src/Particular.LicensingComponent/ThroughputCollector.cs
@@ -132,7 +132,8 @@ public async Task GenerateThroughputReport(string spVersion, DateT
UserIndicator = endpointData.UserIndicator,
EndpointIndicators = endpointData.EndpointIndicators ?? [],
NoDataOrSendOnly = endpointData.ThroughputData.Sum() == 0,
- Scope = endpointData.Scope ?? "",
+ ScopeHash = string.IsNullOrEmpty(endpointData.Scope) ? "" : OneWayHasher.CalculateOneWayHash(endpointData.Scope),
+ Scope = masker.Mask(endpointData.Scope ?? ""),
Throughput = endpointData.ThroughputData.MaxDailyThroughput(),
DailyThroughputFromAudit = endpointData.ThroughputData.FromSource(ThroughputSource.Audit).Select(s => new DailyThroughput { DateUTC = s.DateUTC, MessageCount = s.MessageCount }).ToArray(),
DailyThroughputFromMonitoring = endpointData.ThroughputData.FromSource(ThroughputSource.Monitoring).Select(s => new DailyThroughput { DateUTC = s.DateUTC, MessageCount = s.MessageCount }).ToArray(),