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

Convert liberty dispatcher instrumentation to instrumenter api #4256

Merged
merged 5 commits into from
Oct 3, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Sep 30, 2021

Part of #2713

@Override
public @Nullable String peerName(
LibertyRequest libertyRequest, @Nullable LibertyResponse libertyResponse) {
if (!libertyRequest.isCompleted()) {
Copy link
Member

@trask trask Oct 2, 2021

Choose a reason for hiding this comment

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

is checking isCompleted() a performance optimization, or is it needed for another reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is used to limit calling these methods to onStart because in onEnd they may throw a NPE.

@trask trask mentioned this pull request Oct 3, 2021
@trask trask merged commit 39a1604 into open-telemetry:main Oct 3, 2021
@laurit laurit deleted the liberty-dispatcher-instrumenter branch July 6, 2023 17:44
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.

3 participants