-
Notifications
You must be signed in to change notification settings - Fork 38
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Issue
When flushPreserveDimensions
is true, the context will disable default dimensions after the first flush.
Reproduction
MetricsLogger logger = new MetricsLogger(environment);
logger.putMetric("Example", 100);
logger.flush();
logger.putMetric("Example", 200);
logger.flush(); // This logger will not contain any default dimensions
Cause
Context copy uses setDimensions()
to copy custom dimensions which disables default dimensions.
Line 171 in ac3e84c
metricDirective.setDimensions(this.dimensions); |
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working