Skip to content

Misleading metric label client.name in client observation conventionΒ #35154

@juliojgd

Description

@juliojgd

The DefaultClientRequestObservationConvention class defines a value for client.name label entry that will be the target host the request will be sent to or the literal "none".

I think the label key should be "target.host" because the value it may contain refers to the target host and not to any other feature of the client.

protected KeyValue clientName(ClientRequestObservationContext context) {
if (context.getCarrier() != null && context.getCarrier().getURI().getHost() != null) {
return KeyValue.of(LowCardinalityKeyNames.CLIENT_NAME, context.getCarrier().getURI().getHost());
}
return CLIENT_NAME_NONE;
}

Maybe this name could be changed in the future to clarify the semantics of the contents of that pair?

Thanks for the time to read this

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: declinedA suggestion or change that we don't feel we should currently applytheme: observabilityAn issue related to observability and tracing

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions