Skip to content

Conversation

@ethandmd
Copy link
Contributor

@ethandmd ethandmd commented May 14, 2025

Fixes #3411

Changes

Replaces the construction of the gRPC target for the otlp grpc client to support unix sockets.

@ethandmd ethandmd requested a review from a team as a code owner May 14, 2025 21:19
@netlify
Copy link

netlify bot commented May 14, 2025

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit de015a4
🔍 Latest deploy log https://app.netlify.com/projects/opentelemetry-cpp-api-docs/deploys/68374600b97f3d000892659d

@codecov
Copy link

codecov bot commented May 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.88%. Comparing base (214950e) to head (de015a4).
Report is 18 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           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:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

std::string grpc_target = url.host_ + ":" + std::to_string(static_cast<int>(url.port_));
std::string grpc_target;

if (url.scheme_ == "unix")
Copy link
Member

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?

Copy link
Contributor

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?

Copy link
Contributor

@ThomsonTan ThomsonTan left a 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.

@marcalff marcalff changed the title support unix sockets in grpc client [EXPORTER] support unix sockets in grpc client May 28, 2025
Copy link
Member

@marcalff marcalff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@marcalff marcalff merged commit d99593f into open-telemetry:main May 28, 2025
67 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.

Support unix sockets in otlp grpc client

5 participants