-
Notifications
You must be signed in to change notification settings - Fork 998
Library readmes - batch 3 #14680
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
Library readmes - batch 3 #14680
Conversation
Mono<String> mono = Mono.just("Hello, World!"); | ||
Flux<String> flux = Flux.just("Hello", "World"); | ||
|
||
mono.subscribe(System.out::println); | ||
flux.subscribe(System.out::println); |
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.
not really useful as the instrumentation won't change the outcome of this
import ratpack.server.RatpackServer; | ||
import ratpack.http.client.HttpClient; | ||
|
||
public class RatpackExample { |
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 personally like the okhttp code snippet more where we have a method that accepts opentelemety instance and returns instrumented client.
OpenTelemetry openTelemetry = ...; | ||
|
||
// Create an instrumenter for your specific request type | ||
Instrumenter<String, Void> instrumenter = Instrumenter.<String, Void>builder( |
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 get the feeling that this ins't a proper library instrumentation but rather a tool used in other instrumentations.
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.
yea, i'll switch to considering this an "internal" instrumentation and remove this readme entirely
ef1a60f
to
d6c98e7
Compare
Contributes to #6947