Skip to content

chore(telemetry): client.address should be the resolved client address#2032

Merged
Mirko-von-Leipzig merged 3 commits intomainfrom
mirko/fix-client-addr
May 4, 2026
Merged

chore(telemetry): client.address should be the resolved client address#2032
Mirko-von-Leipzig merged 3 commits intomainfrom
mirko/fix-client-addr

Conversation

@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

At the moment its the direct client (which is often a reverse proxy).

Comment on lines +70 to +72
if let Ok(ip) = SmartIpKeyExtractor.extract(request) {
span.set_attribute("client.address", ip);
} else if let Some(addr) = remote_addr {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Unfortunately no port available without performing the header parsing ourselves, which I don't think is worth it.

@Mirko-von-Leipzig Mirko-von-Leipzig added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label May 3, 2026
@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 41c2aca into main May 4, 2026
17 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the mirko/fix-client-addr branch May 4, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants