-
Notifications
You must be signed in to change notification settings - Fork 10.6k
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
Census Tag Set API and implementation #4750
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
/* Get a contexts tag set. */ | ||
census_tag_set *census_context_tag_set(census_context *context); | ||
/* A tag is a key:value pair. The key is a non-empty, printable, nil-terminated | ||
string. The value is a binary string, that may be printable. There are no |
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.
maybe be more specific about printable? that may be printable (ex. UTF-8 decoded).
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.
Done.
/* Maximum length of a tag's key or value. */ | ||
#define CENSUS_MAX_TAG_KV_LEN 255 | ||
/* Maximum number of propagatable tags. */ | ||
#define CENSUS_MAX_PROPAGATED_TAGS 255 |
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.
Should we start with a lower number? Also please mention the hard limit for this implementation.
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.
We could have a lower number, but why? Hard limit comment has been added to the implementation detail (I want to keep it out of the API).
Fixes #4665 |
#include "src/core/support/string.h" | ||
|
||
// Functions in this file support the public tag_set API, as well as | ||
// encoding/decoding tag_sets as part of context transmission across |
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.
s/transmission/propagation
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.
Done
Have updated: buf_size no longer used for in and out args, |
Census Tag Set API and implementation
No description provided.