Skip to content

Remove .instrumentation/development.general.peer.service_mapping#526

Merged
codeboten merged 2 commits intoopen-telemetry:mainfrom
trask:remove-peer-service
Feb 6, 2026
Merged

Remove .instrumentation/development.general.peer.service_mapping#526
codeboten merged 2 commits intoopen-telemetry:mainfrom
trask:remove-peer-service

Conversation

@trask
Copy link
Copy Markdown
Member

@trask trask commented Feb 5, 2026

Alternative to #520

peer.service has been renamed to service.peer.name, and service.peer.namespace has been introduced.

We could adapt the name (see #520), but I think Java is the only language that has implemented this mapping concept, and it's not super convenient since it's all manual work for users. After semconv discussions, it seems like service.peer.name will typically be added in an ingestion pipeline where it can be automatically populated from a span tree based on the known remote service.name, e.g. in some kind of a span-to-metrics pipeline.

So I think my recommendation would be to drop it from the configuration model, at least until there's greater demand. But also don't mind if you prefer #520.

@trask trask marked this pull request as ready for review February 5, 2026 02:59
@trask trask requested a review from a team as a code owner February 5, 2026 02:59
@jack-berg
Copy link
Copy Markdown
Member

I defer to semantic conventions folks for whether we should drop or adapt this. Could drop it and open an issue to solicit whether any users want this feature. We took a similar approach with zipkin span exporter, jaeger propagator, and ot trace propagator. All these concepts were deprecated at the spec level, and rather than going stable with deprecated types, we deleted them and are willing to bring them back as deprecated if upon user request.

@trask
Copy link
Copy Markdown
Member Author

trask commented Feb 5, 2026

There's nothing in semantic conventions about peer service mapping.

@jack-berg
Copy link
Copy Markdown
Member

Then I hallucinated this property (or more likely added through the lens of java agent config) and we can delete.

@codeboten codeboten merged commit 28784d4 into open-telemetry:main Feb 6, 2026
12 checks passed
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