Julio Biason created FLINK-9241:
-----------------------------------
Summary: 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
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)