[ https://issues.apache.org/jira/browse/FLINK-9241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16448813#comment-16448813 ]
Julio Biason commented on FLINK-9241: ------------------------------------- Related piece of code: {{ @transient private var meanLateness = 0}} {{ override def open(parameters:Configuration):Unit = {}} {{ getRuntimeContext}} {{ .getMetricGroup}} {{ .addGroup(groupName)}} {{ .gauge("meanLateness", ScalaGauge[Int] ( () => meanLateness ))}} {{ }}} > Scala version of Gauge (metric) doesn't work > -------------------------------------------- > > Key: FLINK-9241 > URL: https://issues.apache.org/jira/browse/FLINK-9241 > Project: Flink > Issue Type: Bug > Components: Documentation > Reporter: Julio Biason > Priority: Major > > In the docs, the example for [using a gauge metric in > scala|https://ci.apache.org/projects/flink/flink-docs-release-1.4/monitoring/metrics.html#gauge] > doesn't even compile: > {{[error] > /vagrant/src/main/scala/net/juliobiason/pipeline/sideoutputs.scala:34: > overloaded method value gauge with alternatives:}} > {{[error] [T, G <: org.apache.flink.metrics.Gauge[T]](x$1: String, x$2: G)G > <and>}} > {{[error] [T, G <: org.apache.flink.metrics.Gauge[T]](x$1: Int, x$2: G)G}} > {{[error] cannot be applied to (String, > org.apache.flink.api.scala.metrics.ScalaGauge[Int])}} > {{[error] .gauge("meanLateness", ScalaGauge[Int] ( () => meanLateness > ))}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)