Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sending metrics inside of scala execution context will not work #75

Open
senyan opened this issue Jun 1, 2019 · 0 comments
Open

sending metrics inside of scala execution context will not work #75

senyan opened this issue Jun 1, 2019 · 0 comments

Comments

@senyan
Copy link

senyan commented Jun 1, 2019

 Telemetry.qc_success(1, "test1")
    val futures = datasets.map( (ds) => {
      Telemetry.qc_success(1, "test2")
      val future = Future {
      Telemetry.qc_success(1, "test3")
        blocking{
      Telemetry.qc_success(1, "test4")
          actualCode()
        }
      }
      Telemetry.qc_success(1 "test5")
      future
    }).map( (x) => {
      Telemetry.qc_success(1, "test6")
      Await.result(x, 2 hours)
      Telemetry.qc_success(1, "test7")
    })
    Telemetry.qc_success(1, "test8")

In the above code, only test1, test2 and test8 will be successfully sent. Seems anything inside of scala execution context will not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant