Scala integration

Hi @Sylvain_Juge,

I'll have a closer look to see if I can create a PR adding a Scala related plugin.

In the meantime, I've created a repo that does some jdbc calls and http-requests using Scala and added the ElasticAPM instrumentation to it: https://github.com/milanvdm/scala-elastic-apm

Since quite some Scala libraries use Java libraries underneath it, I expect things such as jdbc calls to work already.

Some observations:

  • JVM metrics are sent correctly (heap-usage, …)
  • The Manual Transaction I create at the start of the program and close at the end is also seen correctly
  • The debug logs of the ElasticAPMAgent seems to match on the JDBC methods and Thread switches
  • Not a single span is shown in the ElasticAPM dashboard
  • It doesn’t seem to match on http-calls in the debug logs (although AsyncHttpClient is used as an underlying library)

Since the ElasticAgent clearly logs that it is matching some Bytecode, I'm unsure what the exact reason is on why no spans are being created.