Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update sdk/monitor/azure-monitor-opentelemetry-autoconfigure/src/main…
…/java/com/azure/monitor/opentelemetry/autoconfigure/implementation/pipeline/TelemetryItemExporter.java

Co-authored-by: Trask Stalnaker <[email protected]>
  • Loading branch information
jeanbisutti and trask authored Jan 13, 2025
commit 56a9b9569924fb3c932164c3675cd1629bc0b182
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private static String maskIKeys(List<TelemetryItem> telemetryItems, String json)
= telemetryItems.stream().map(TelemetryItem::getInstrumentationKey).collect(Collectors.toSet());
for (String instrumentationKey : iKeys) {
String maskedIKey
= "*" + instrumentationKey.substring(instrumentationKey.length() - 13, instrumentationKey.length() - 1);
= "*" + instrumentationKey.substring(instrumentationKey.length() - 13);
json = json.replace(instrumentationKey, maskedIKey);
}
return json;
Expand Down
Loading