-
Notifications
You must be signed in to change notification settings - Fork 483
[EXPORTER] support unix sockets in grpc client #3410
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
Conversation
✅ Deploy Preview for opentelemetry-cpp-api-docs canceled.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3410 +/- ##
=======================================
Coverage 89.88% 89.88%
=======================================
Files 212 212
Lines 6941 6941
=======================================
Hits 6238 6238
Misses 703 703 🚀 New features to boost your workflow:
|
std::string grpc_target = url.host_ + ":" + std::to_string(static_cast<int>(url.port_)); | ||
std::string grpc_target; | ||
|
||
if (url.scheme_ == "unix") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a test for unix socket?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add some example on the unix scheme in the comment to help understanding?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for addressing the comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Fixes #3411
Changes
Replaces the construction of the gRPC target for the otlp grpc client to support unix sockets.