Skip to content
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

suggestions #4

Conversation

trask
Copy link

@trask trask commented Jun 21, 2024

No description provided.


/**
* This class is internal and is hence not for public use. Its APIs are unstable and can change at
* any time.
*/
public final class DefaultHttpClientTelemetryBuilder<REQUEST, RESPONSE> {
public final class DefaultHttpClientInstrumenterBuilder<REQUEST, RESPONSE> {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...InstrumenterBuilder because it builds an Instrumenter

Comment on lines -48 to +54
private final Optional<TextMapSetter<REQUEST>> headerSetter;
private final HttpSpanNameExtractorBuilder<REQUEST> httpSpanNameExtractorBuilder;

@Nullable private TextMapSetter<REQUEST> headerSetter;
private Function<SpanNameExtractor<REQUEST>, ? extends SpanNameExtractor<? super REQUEST>>
spanNameExtractorTransformer = Function.identity();
private boolean emitExperimentalHttpClientMetrics = false;
private Consumer<InstrumenterBuilder<REQUEST, RESPONSE>> builderCustomizer = b -> {};
Copy link
Author

@trask trask Jun 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved these to optional fields with associated normal builder pattern setters to keep the constructor and build() methods limited to required fields

@zeitlinger zeitlinger merged commit 6a42292 into zeitlinger:insrumentation-builder-factory Jun 21, 2024
47 of 54 checks passed
@trask trask deleted the insrumentation-builder-factory branch October 14, 2024 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants