Skip to content

[core] Checkin opentelemetry C++ sdk dependency - #51077

Merged
edoakes merged 4 commits into
ray-project:masterfrom
dentiny:hjiang/checkin-opentelemetry-sdk
Mar 5, 2025
Merged

edoakes merged 4 commits into
ray-project:masterfrom
dentiny:hjiang/checkin-opentelemetry-sdk

Conversation

@dentiny

@dentiny dentiny commented Mar 4, 2025 •

Copy link
Copy Markdown
Contributor

opencensus has been archived for ~2 years, we should upgrade to opentelemetry which is the somewhat an "improved" and maintained version.

@dentiny dentiny added the go add ONLY when ready to merge, run all tests label Mar 4, 2025
@dentiny
dentiny requested review from edoakes and jjyao March 4, 2025 23:15
@dentiny
dentiny requested a review from aslonnie March 4, 2025 23:18
@dentiny dentiny assigned jjyao, edoakes and aslonnie and unassigned jjyao and edoakes Mar 4, 2025
@edoakes

edoakes commented Mar 4, 2025

Copy link
Copy Markdown
Collaborator

Looks fine, but let's check it in with the code that uses it?

@aslonnie aslonnie left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks fine, but let's check it in with the code that uses it?

+1, maybe use it at least for once? otherwise it is hard to tell if the import works.

Signed-off-by: dentiny <[email protected]>
@dentiny

dentiny commented Mar 5, 2025

Copy link
Copy Markdown
Contributor Author

Looks fine, but let's check it in with the code that uses it?

I thought about that, the most ideal way is to have a basic replacement implementation for metrics class that we have, but checking the codebase there're much work to do.

One concern is the compatibility between opencensus vs opentelemetry, like the default endpoint.

But I think your argument makes sense; I add a simple "test script" to show dependency checkin has no problem.

@dentiny
dentiny requested a review from aslonnie March 5, 2025 00:28
Signed-off-by: dentiny <[email protected]>
Comment thread BUILD.bazel Resolved
@dentiny
dentiny requested a review from aslonnie March 5, 2025 01:18
Signed-off-by: dentiny <[email protected]>
@dentiny
dentiny force-pushed the hjiang/checkin-opentelemetry-sdk branch from adc90cc to b9da27f Compare March 5, 2025 01:27
@MengjinYan

Copy link
Copy Markdown
Contributor

Thanks for taking this on! Just to confirm, this is just to add the open telemetry dependency and there will be followup PRs to fix the breaking changes (https://opentelemetry.io/docs/specs/otel/compatibility/opencensus/) between the OpenCensus and OPTL, is that correct?

@dentiny

dentiny commented Mar 5, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for taking this on! Just to confirm, this is just to add the open telemetry dependency and there will be followup PRs to fix the breaking changes (https://opentelemetry.io/docs/specs/otel/compatibility/opencensus/) between the OpenCensus and OPTL, is that correct?

Yes, my plan is to implement a compatible metrics class, which is a counterpart for existing class, later on migrate metrics usage one by one.

@MengjinYan

Copy link
Copy Markdown
Contributor

Thanks for taking this on! Just to confirm, this is just to add the open telemetry dependency and there will be followup PRs to fix the breaking changes (https://opentelemetry.io/docs/specs/otel/compatibility/opencensus/) between the OpenCensus and OPTL, is that correct?

Yes, my plan is to implement a compatible metrics class, which is a counterpart for existing class, later on migrate metrics usage one by one.

I'm wondering other than the metrics classes, whether the metrics collectors and exporters needs to be updated as well.

@edoakes
edoakes merged commit b53dc04 into ray-project:master Mar 5, 2025
abrarsheikh pushed a commit that referenced this pull request Mar 8, 2025
[opencensus](https://github.com/census-instrumentation/opencensus-cpp)
has been archived for ~2 years, we should upgrade to opentelemetry which
is the somewhat an "improved" and maintained version.

---------

Signed-off-by: dentiny <[email protected]>
Signed-off-by: Abrar Sheikh <[email protected]>
park12sj pushed a commit to park12sj/ray that referenced this pull request Mar 18, 2025
[opencensus](https://github.com/census-instrumentation/opencensus-cpp)
has been archived for ~2 years, we should upgrade to opentelemetry which
is the somewhat an "improved" and maintained version.

---------

Signed-off-by: dentiny <[email protected]>
dhakshin32 pushed a commit to dhakshin32/ray that referenced this pull request Mar 27, 2025
[opencensus](https://github.com/census-instrumentation/opencensus-cpp)
has been archived for ~2 years, we should upgrade to opentelemetry which
is the somewhat an "improved" and maintained version.

---------

Signed-off-by: dentiny <[email protected]>
Signed-off-by: Dhakshin Suriakannu <[email protected]>
can-anyscale added a commit that referenced this pull request Jun 10, 2025
Remove some open telemetry code that was added in
#51077. These files were added to
test the complication of the open telemetry library, but we never end up
using these files.

Test:
- CI

Signed-off-by: can <[email protected]>
nrghosh pushed a commit to nrghosh/ray that referenced this pull request Jun 10, 2025
Remove some open telemetry code that was added in
ray-project#51077. These files were added to
test the complication of the open telemetry library, but we never end up
using these files.

Test:
- CI

Signed-off-by: can <[email protected]>
elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
Remove some open telemetry code that was added in
#51077. These files were added to
test the complication of the open telemetry library, but we never end up
using these files.

Test:
- CI

Signed-off-by: can <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
Remove some open telemetry code that was added in
#51077. These files were added to
test the complication of the open telemetry library, but we never end up
using these files.

Test:
- CI

Signed-off-by: can <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-backlog go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants