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

Implement new stable client semantic conventions #8704

Merged
merged 2 commits into from
Jun 14, 2023

Conversation

mateuszrzeszutek
Copy link
Member

No description provided.

@mateuszrzeszutek mateuszrzeszutek requested a review from a team June 13, 2023 10:58
@mateuszrzeszutek mateuszrzeszutek added this to the v1.27.0 milestone Jun 13, 2023
Comment on lines +240 to +241
// TODO: client.port will be implemented in a future PR
return null;
Copy link
Member Author

Choose a reason for hiding this comment

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

I'll implement the client.port attribute in a separate PR - probably after the release, I think I'll refactor the FallbackNamePortGetter util a bit to avoid double parsing (as much as possible)

}
}
if (emitOldHttpAttributes) {
internalSet(attributes, SemanticAttributes.HTTP_CLIENT_IP, clientAddress);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think here clientAddress doesn't have to be an ip, would that be a problem?

Copy link
Member Author

Choose a reason for hiding this comment

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

In practice, no - right now the only place that can invoke this code branch is the HttpServerAttributesExtractor, nothing else in our codebase emits the client address.

Copy link
Member

@trask trask left a comment

Choose a reason for hiding this comment

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

❤️

@trask trask merged commit 4f12fba into open-telemetry:main Jun 14, 2023
@mateuszrzeszutek mateuszrzeszutek deleted the client-getter branch June 14, 2023 04:18
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