You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Integrating Rust binaries in tracer extensions #32502
Title: Integrating Rust binaries in tracer extensions
Description:
Hi envoy team, as you might know Datadog is currently integrating a tracer into envoy. As a result of a company initiative to harmonize implementations that are common to the different tracers implemented inside the company we'd have the need to use this common modules into the dd-trace-cpp project. The language of choice for those common modules is Rust which means we'd need to either compile Rust code inside envoy project or importing a precompiled binary during the compilation of the extension. I've tried to look for another extensions using any of the aforementioned mechanisms to integrate Rust code but, unfortunately, I had no luck. So Is there a way to integrate Rust code/libraries in a tracer?
Aside from that I've found this PR, with that we could build a dynamic library which will include the cpp tracer and the rust parts to be loaded upon envoy initialization right?
We currently don't have a mechanism for dynamic load and Rust support, but I'd be excited to see Rust code build inside Envoy and linking to binary. There was a discussion regards to dynamic loadable modules in #2053 as well.
@lizan when you say you'd be excited to see Rust code build an linking to a binary you mean that the rust module should be embedded in the envoy project, built from source and linked as part of the envoy compilation (just as the tracer) right?
Would it be acceptable, as a first approach, to import a static library during the datadog tracer compilation and link to it?
Following on the topic @lizan and leaving the dynamic loadable modules aside. We've been evaluating what options we have to put this in motion for the short term. The one we are considering is using an external dependency (tgz file) which will contain the static library compiled for all architectures supported. The proper architecture will be selected based on the ARCH of the bazel project. This static library will contain the rust code and FFI methods to be called from Datadog tracer so all will be statically linked with no external dependencies. How does that sound?
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
Activity
lizan commentedon Feb 22, 2024
We currently don't have a mechanism for dynamic load and Rust support, but I'd be excited to see Rust code build inside Envoy and linking to binary. There was a discussion regards to dynamic loadable modules in #2053 as well.
hoolioh commentedon Feb 28, 2024
@lizan when you say you'd be excited to see Rust code build an linking to a binary you mean that the rust module should be embedded in the envoy project, built from source and linked as part of the envoy compilation (just as the tracer) right?
Would it be acceptable, as a first approach, to import a static library during the datadog tracer compilation and link to it?
hoolioh commentedon Mar 27, 2024
Following on the topic @lizan and leaving the dynamic loadable modules aside. We've been evaluating what options we have to put this in motion for the short term. The one we are considering is using an external dependency (tgz file) which will contain the static library compiled for all architectures supported. The proper architecture will be selected based on the ARCH of the bazel project. This static library will contain the rust code and FFI methods to be called from Datadog tracer so all will be statically linked with no external dependencies. How does that sound?
github-actions commentedon Apr 26, 2024
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
github-actions commentedon May 3, 2024
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.
dynamic_modules: adds initial object loading logic (#35550)
dynamic_modules: adds initial object loading logic (envoyproxy#35550)
dynamic_modules: adds initial object loading logic (envoyproxy#35550)
Enable dynamic modules & high level doc (#38295)