-
Notifications
You must be signed in to change notification settings - Fork 893
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
Convert java-http-client to use Instrumenter API #3790
Convert java-http-client to use Instrumenter API #3790
Conversation
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.
thx!
|
||
/** Context propagation is implemented via {@link HttpHeadersInstrumentation}. */ | ||
/** Context propagation is initiated in via {@link HttpHeadersInstrumentation}. */ |
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.
/** Context propagation is initiated in via {@link HttpHeadersInstrumentation}. */ | |
/** Context propagation is initiated in {@link HttpHeadersInstrumentation}. */ |
.addAttributesExtractor(httpAttributesExtractor) | ||
.addAttributesExtractor(netAttributesExtractor) | ||
.addAttributesExtractor(PeerServiceAttributesExtractor.create(netAttributesExtractor)) | ||
.addRequestMetrics(HttpClientMetrics.get()) |
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.
more metrics 🎉
} | ||
|
||
@Override | ||
protected @Nullable String flavor( |
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.
Nit
protected @Nullable String flavor( | |
protected String flavor( |
} | ||
|
||
@Override | ||
protected @Nullable Integer statusCode(HttpRequest httpRequest, HttpResponse<?> httpResponse) { |
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.
protected @Nullable Integer statusCode(HttpRequest httpRequest, HttpResponse<?> httpResponse) { | |
protected Integer statusCode(HttpRequest httpRequest, HttpResponse<?> httpResponse) { |
private static final Logger logger = LoggerFactory.getLogger(JdkHttpNetAttributesExtractor.class); | ||
|
||
@Override | ||
public @Nullable String transport(HttpRequest httpRequest) { |
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.
public @Nullable String transport(HttpRequest httpRequest) { | |
public String transport(HttpRequest httpRequest) { |
Contributing to Issue #2713.