You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class RlcmKinesisRecordProcessor implements ShardRecordProcessor {
private String shardId;
@Override
public void initialize(InitializationInput initializationInput) {
log.info("Starting to consume from shard: " + initializationInput.shardId());
this.shardId = initializationInput.shardId();
}
@Override
public void processRecords(ProcessRecordsInput processRecordsInput) {
log.info("ShardId: {}", this.shardId);
}
Using the about approach, I am unable to get the actual shardId from which the record is processed, I have also tried with MDC, still no improvement. Is there a way to accurately log the shardId ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
public class RlcmKinesisRecordProcessor implements ShardRecordProcessor {
Using the about approach, I am unable to get the actual shardId from which the record is processed, I have also tried with MDC, still no improvement. Is there a way to accurately log the shardId ?
Beta Was this translation helpful? Give feedback.
All reactions