Skip to content

Commit 7eed26b

Browse files
committed
fix: Enable anonymous context redaction in server custom/migration events
Consume the redactAnonymousAllEvents flag added to launchdarkly-java-sdk-internal: bump the internal dependency and enable the flag when the server SDK constructs its EventsConfiguration, so anonymous context attributes are redacted in custom and migration_op events (server-side behavior). Stacked on #194 (the internal change). Do not merge until launchdarkly-java-sdk-internal 1.9.1 is released. SDK-2732
1 parent 5827ed0 commit 7eed26b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/sdk/server/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ ext.versions = [
7171
"guava": "32.0.1-jre",
7272
"jackson": "2.11.2",
7373
"launchdarklyJavaSdkCommon": "2.3.0",
74-
"launchdarklyJavaSdkInternal": "1.9.0",
74+
"launchdarklyJavaSdkInternal": "1.9.1",
7575
"launchdarklyLogging": "1.1.0",
7676
"okhttp": "4.12.0", // specify this for the SDK build instead of relying on the transitive dependency from okhttp-eventsource
7777
"okhttpEventsource": "4.2.0",

lib/sdk/server/src/main/java/com/launchdarkly/sdk/server/ComponentsImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,9 @@ public EventProcessor build(ClientContext context) {
247247
flushInterval.toMillis(),
248248
false,
249249
false,
250-
privateAttributes);
250+
privateAttributes,
251+
false, // perContextSummarization: server-side SDKs summarize across contexts
252+
true); // redactAnonymousAllEvents: server-side SDKs inline & redact custom/migration-op contexts
251253
return new DefaultEventProcessorWrapper(context, eventsConfig);
252254
}
253255

0 commit comments

Comments
 (0)