Skip to content

Library readmes - batch 3#14680

Merged
laurit merged 3 commits into
open-telemetry:mainfrom
jaydeluca:library-batch3
Sep 24, 2025
Merged

Library readmes - batch 3#14680
laurit merged 3 commits into
open-telemetry:mainfrom
jaydeluca:library-batch3

Conversation

@jaydeluca

Copy link
Copy Markdown
Member

Contributes to #6947

@jaydeluca jaydeluca requested a review from a team as a code owner September 16, 2025 13:29
Comment on lines +43 to +47
Mono<String> mono = Mono.just("Hello, World!");
Flux<String> flux = Flux.just("Hello", "World");

mono.subscribe(System.out::println);
flux.subscribe(System.out::println);

Copy link
Copy Markdown
Contributor

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 {

Copy link
Copy Markdown
Contributor

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(

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Member Author

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

@laurit laurit merged commit cb6abd2 into open-telemetry:main Sep 24, 2025
89 checks passed
mznet pushed a commit to mznet/opentelemetry-java-instrumentation that referenced this pull request Sep 26, 2025
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

Successfully merging this pull request may close these issues.

2 participants