analytics-java icon indicating copy to clipboard operation
analytics-java copied to clipboard

Segment's MessageBuilder context is write-only which prevents additive context building

Open rvowles opened this issue 1 year ago • 1 comments

I am trying to add Segment integration for the Java SDK for FeatureHub (https://featurehub.io) - and I need to be able to capture the state of the features when a message is dropped to Segment. I want to augment the context, but if someone has another MessageTransformer which has set the context, I cannot add to that context (in the MessageBuilder), I can only overwrite it. I get we should create a new Map and stuff the existing data into it so we don't have cross SDK leakage, but we should be able to get the existing context.

rvowles avatar Aug 03 '24 20:08 rvowles

Hi @rvowles thank you for your report, we start looking into this.

edsonjab avatar Aug 06 '24 18:08 edsonjab