-
Notifications
You must be signed in to change notification settings - Fork 8
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
Live debugger parsing, expression evaluation, sender, redaction and FFI #497
Conversation
b89fdee
to
95c7998
Compare
8ed0173
to
dd7c3c4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #497 +/- ##
==========================================
- Coverage 73.83% 71.87% -1.97%
==========================================
Files 257 271 +14
Lines 37329 40654 +3325
==========================================
+ Hits 27563 29221 +1658
- Misses 9766 11433 +1667
|
9dbd596
to
bc824b8
Compare
live-debugger-ffi/src/data.rs
Outdated
Probe { | ||
id: from.id.as_str().into(), | ||
version: from.version, | ||
language: from.language.as_ref().map(|s| s.as_str().into()).into(), |
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.
Is there a note/explanation somewhere for what this is for? Are there multiple string types being used?
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.
Not sure what you are asking? Why I'm collecting the language? What this particular line of rust does? Or just asking what I'm doing to convert an Option<String>
into an Option<CharSlice>
?
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.
Apologies for being unclear. I was asking why language: from.language
would be insufficient, for my general education on how rust works.
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.
Ah, yeah, just the conversion of the value within the Option to something FFI understands.
1af5976
to
2e750e5
Compare
2ca32a8
to
9375778
Compare
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Otherwise concurrency in tests will lead to flakiness. Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
6384442
to
cd71b03
Compare
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
cd71b03
to
a70f928
Compare
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
9667e4a
to
e0dd32b
Compare
Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
Parsing goes through an intermediate step, which serde can simply deserialize to, handling which isn't possible by serde is then translated to working structures.
The Evaluator (feel free to clean up lifetime handling if possible. Spent far too much time fighting the borrow checker. Maybe my code is already perfect and I don't know it.) handles all evaluation of the expression language, iteration, error handling etc. and defers to some callbacks for actual evaluation of the values.