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

Split NetAttributesExtractor into NetClientAttributesExtractor and NetServerAttributesExtractor #4287

Merged
merged 32 commits into from
Oct 7, 2021

Conversation

trask
Copy link
Member

@trask trask commented Oct 4, 2021

Alternative to #4278 that implements parallel hierarchies:

  • NetClientAttributesExtractor
  • InetSocketAddressNetClientAttributesExtractor

and

  • NetClientAttributesExtractor
  • InetSocketAddressNetClientAttributesExtractor

Note: peer.service only applies to client spans (afaict), so PeerServiceAttributesExtractor is not split, and only applies to NetClientAttributesExtractor.

@mateuszrzeszutek
Copy link
Member

Should we go ahead with the NetAttributesServerExtractor/NetAttributesClientExtractor idea? It matches the recently changes flavor() methods in HTTP extractors.

@trask
Copy link
Member Author

trask commented Oct 5, 2021

Should we go ahead with the NetAttributesServerExtractor/NetAttributesClientExtractor idea? It matches the recently changes flavor() methods in HTTP extractors.

This PR is updated now with this approach 👍

@trask
Copy link
Member Author

trask commented Oct 6, 2021

please see this commit for attempt to expose peerService to library instrumentation based on discussion in #4235

@trask
Copy link
Member Author

trask commented Oct 6, 2021

please see this commit for attempt to expose peerService to library instrumentation based on discussion in #4235

I also added similar for Dubbo

@trask
Copy link
Member Author

trask commented Oct 6, 2021

please see this commit for attempt to expose peerService to library instrumentation based on discussion in #4235

I also added similar for Dubbo

and gRPC

@trask trask changed the title NetAttributesExtractor optimization Split NetAttributesExtractor into NetClientAttributesExtractor and NetServerAttributesExtractor Oct 6, 2021
@trask
Copy link
Member Author

trask commented Oct 7, 2021

Going ahead and merging since it's large and conflict-y. Happy to address any additional thoughts in follow-ups.

@trask trask merged commit 63a2383 into open-telemetry:main Oct 7, 2021
@trask trask deleted the net-extractors branch October 7, 2021 22:40
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.

2 participants