zio / zio-telemetry

ZIO-powered OpenTelemetry library
https://zio.dev/zio-telemetry
Apache License 2.0
113 stars 55 forks source link

Migrate scala-cli examples to the latest version of Scala 3 #867

Closed grouzen closed 3 months ago

grouzen commented 3 months ago

It's been reported that when the https://github.com/zio/zio-telemetry/blob/series/2.x/scala-cli/opentelemetry/LoggingApp.scala is being run with Scala 3.3.3, it returns a compilation error:

[error] ./LoggingApp.scala:13:35
[error] an identifier expected, but 'export' found
[error] import io.opentelemetry.sdk.trace.export.SimpleSpanProcessor

It is good to provide a better experience for the library users so I think migrating to Scala 3 is worth doing.