You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (JIRA)" <ji...@apache.org> on 2018/04/24 08:08:00 UTC

[jira] [Assigned] (FLINK-9241) Usage docs for ScalaGauge doesn't work

     [ https://issues.apache.org/jira/browse/FLINK-9241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chesnay Schepler reassigned FLINK-9241:
---------------------------------------

    Assignee: Chesnay Schepler

> Usage docs for ScalaGauge doesn't work
> --------------------------------------
>
>                 Key: FLINK-9241
>                 URL: https://issues.apache.org/jira/browse/FLINK-9241
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation, Metrics
>    Affects Versions: 1.5.0, 1.4.2
>            Reporter: Julio Biason
>            Assignee: Chesnay Schepler
>            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)