Skip to content

suggestions#4

Merged
zeitlinger merged 1 commit into
zeitlinger:insrumentation-builder-factoryfrom
trask:insrumentation-builder-factory
Jun 21, 2024
Merged

suggestions#4
zeitlinger merged 1 commit into
zeitlinger:insrumentation-builder-factoryfrom
trask:insrumentation-builder-factory

Conversation

@trask

@trask trask commented Jun 21, 2024

Copy link
Copy Markdown

No description provided.

* any time.
*/
public final class DefaultHttpClientTelemetryBuilder<REQUEST, RESPONSE> {
public final class DefaultHttpClientInstrumenterBuilder<REQUEST, RESPONSE> {

Copy link
Copy Markdown
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 -> {};

@trask trask Jun 21, 2024

Copy link
Copy Markdown
Author

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
@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