-
Notifications
You must be signed in to change notification settings - Fork 381
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
Add meta_struct support on traces and spans #4334
Conversation
b3dc5c2
to
0836e11
Compare
Datadog ReportBranch report: ✅ 0 Failed, 20629 Passed, 1370 Skipped, 3m 16.82s Total Time |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4334 +/- ##
==========================================
- Coverage 97.70% 97.69% -0.01%
==========================================
Files 1376 1379 +3
Lines 83824 83881 +57
Branches 4251 4251
==========================================
+ Hits 81897 81949 +52
- Misses 1927 1932 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
faf7819
to
fcda7ca
Compare
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.
Awesome work 👏🏼
I think we can run a round of light improvements over the naming and interfaces, rest looks solid!
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.
Requesting changes due to mismatch between no change log entry claimed in PR description and the new API being marked public.
0c00cb0
to
7d76a8e
Compare
9b62558
to
52d5a77
Compare
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.
It depends on the tracing team, but I've left a few notes following our discussion about the metastruct implementation
a771a6d
to
65dd37b
Compare
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.
Amazing move, I think it's good to go! Solid work 👏🏼
P.S I left few suggestions, but they are not blockers
771634f
to
a3ce0bb
Compare
1fe22fc
to
2e8289c
Compare
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.
Awesome 👍🏼
P.S I left few non-blocking test improvements.
…and TraceOperation
Split set_metastruct into deep_merge_metastruct! and metastruct=
- Make metastruct extends Forwardable and forward methods to @Metastruct -add self.empty for when creating an empty metastruct (used in SpanOperation
d580c5e
to
a70a07e
Compare
What does this PR do?
This PR adds meta_struct support to traces and spans. meta_struct is a way to send complex structures to the backend. It is sent as a Map<String, ByteArray> with the ByteArray being the structure encoded in messagepack.
Motivation:
meta_struct is required for stack trace collection, which is required for exploit prevention. But this can also be used by other products.
Change log entry
None.
Additional Notes:
How to test the change?