-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add OtelJava.autoConfigured()
#420
Conversation
oteljava/all/src/main/scala/org/typelevel/otel4s/oteljava/OtelJava.scala
Show resolved
Hide resolved
It's a solid addition, thanks! I guess we should highlight a few cases via Scaladoc notes:
|
also, because it is a |
@iRevive this good? |
oteljava/all/src/main/scala/org/typelevel/otel4s/oteljava/OtelJava.scala
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! One minor question before we can merge.
AutoConfiguredOpenTelemetrySdk => AutoConfigOtelSdk | ||
} | ||
import io.opentelemetry.sdk.autoconfigure.{ | ||
AutoConfiguredOpenTelemetrySdkBuilder => AutoConfigOtelSdkBuilder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought these aliases appeared in Scaladoc, but proved to myself that's not the case. I don't mind them as long as they don't add any public aliases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
having the type of the function be two lines long was just too much for me
Add `OtelJava.autoConfigured(customize: B => B)` method returning a `Resource` of an automatically configured `OpenTelemetrySdk` instance, where `type B = AutoConfiguredOpenTelemetrySdkBuilder`.
2f9beae
to
1bc0183
Compare
build failure after rebase, and I can't repro locally. giving it one more shot until I start poking at the test ( Update: it's flaky! |
No description provided.