-
Notifications
You must be signed in to change notification settings - Fork 160
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
Always serialize schemas when available #2406
Conversation
97aca8b
to
2f7d88a
Compare
|
||
double se_sample_rate = get_global_DD_API_SECURITY_REQUEST_SAMPLE_RATE(); | ||
if (se_sample_rate >= MIN_SE_SAMPLE_RATE) { | ||
mpack_write_bool(w, true); |
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.
I'd suggest to add some comments explaining what this line is
} | ||
} | ||
|
||
if (schema.length() <= max_schema_size) { |
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.
I think it would be good to add a debug line here saying schema key
has been discarded because of size.
Description
Currently schemas are only provided to the extension when there's an event. This PR changes the subscriber to always add serialized schemas to meta whenever they're available.
Reviewer checklist