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

Instrumentation worker ffi #27

Merged
merged 2 commits into from
Sep 21, 2022
Merged

Instrumentation worker ffi #27

merged 2 commits into from
Sep 21, 2022

Conversation

paullegranddc
Copy link
Contributor

@paullegranddc paullegranddc commented Jun 30, 2022

What does this PR do?

Add a ddtelemetry-ffi crate that exposes a FFI to submit telemetry data.
The telemetry bindings support:

  • Setting up, and staring a background telemetry worker that will collect and send telemetry data.
  • Send dependencies to this background worker
  • Send logs to this background worker

This ffi code includes macro_rules that generate accessors for rust on structs. For these accessors to be processed by cbindgen, we beed to use the nightly version of the toolchain.

Things that are not included, but plan to add in further PRs:

  • Generating an artifact for the telemetry library in the build-script
  • FFI usage examples
  • Telemetry metrics sending support

Motivation

Additional Notes

Anything else we should know when reviewing?

How to test the change?

Describe here in detail how the change can be validated.

@paullegranddc paullegranddc force-pushed the paullgdc/ddtelemetry_ffi branch 2 times, most recently from 67d7364 to fca2108 Compare August 17, 2022 12:41
@paullegranddc paullegranddc force-pushed the paullgdc/ddtelemetry_ffi branch from 7040aa5 to f8e3bfb Compare September 15, 2022 14:14
@paullegranddc paullegranddc changed the title WIP Instrumentation worker ffi Sep 15, 2022
@paullegranddc paullegranddc marked this pull request as ready for review September 16, 2022 13:52
@paullegranddc paullegranddc requested review from a team as code owners September 16, 2022 13:52
Copy link
Contributor

@pawelchcki pawelchcki left a comment

Choose a reason for hiding this comment

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

Looks Awesome to me!

@paullegranddc paullegranddc force-pushed the paullgdc/ddtelemetry_ffi branch 2 times, most recently from 2394189 to a126aae Compare September 21, 2022 12:01
@paullegranddc paullegranddc force-pushed the paullgdc/ddtelemetry_ffi branch from a126aae to fae3127 Compare September 21, 2022 12:14
@paullegranddc
Copy link
Contributor Author

Rebased the branch to consolidate commits together

@paullegranddc paullegranddc merged commit 78969e5 into main Sep 21, 2022
@r1viollet
Copy link
Contributor

Congratz on landing this 👏

@bantonsson bantonsson deleted the paullgdc/ddtelemetry_ffi branch March 7, 2024 07:15
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.

3 participants