Skip to content

[Feature]: otelgrpc: use hostname instead of the IP resolved from it for server.address #8789

@cyrille-leclerc

Description

@cyrille-leclerc

Component

Instrumentation: otelgrpc

Problem Statement

We observe in the OTel Demo traces, screenshot below, that otelgrpc sets server.address to the IP address (e.g. 172.18.0.19) rather than the hostname provided to the gRPC client (e.g. payment).

This makes troubleshooting harder and seems misaligned with the OTel semantic conventions, which state that server.address should use the server domain name when available (without reverse DNS), falling back to the IP otherwise (see reference).

Image

Proposed Solution

Use the hostname provided in the gRPC client configuration instead of the IP address resolved from that hostname.

Alternatives

No response

Prior Art

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions