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
Calling setDimensions() in MetricsLogger forwards to MetricsContext which calls Arrays.asList(). This returns a fixed-size list that does not support add() (JavaDoc). Therefore, the following code throws a java.lang.UnsupportedOperationException.
MetricsLogger logger = new MetricsLogger();
logger.setDimensions(DimensionSet.of("foo", "bar"));
logger.putDimensions(DimensionSet.of("foobar", "baz"));
The text was updated successfully, but these errors were encountered:
Calling setDimensions() in MetricsLogger forwards to MetricsContext which calls Arrays.asList(). This returns a fixed-size list that does not support add() (JavaDoc). Therefore, the following code throws a
java.lang.UnsupportedOperationException
.The text was updated successfully, but these errors were encountered: