Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
8e5b21fd
Commit
8e5b21fd
authored
Jan 20, 2016
by
Alistair Veitch
Browse files
Options
Downloads
Patches
Plain Diff
comment updates
parent
4bbdb825
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc/census.h
+7
-3
7 additions, 3 deletions
include/grpc/census.h
src/core/census/tag_set.c
+2
-1
2 additions, 1 deletion
src/core/census/tag_set.c
with
9 additions
and
4 deletions
include/grpc/census.h
+
7
−
3
View file @
8e5b21fd
...
@@ -375,6 +375,8 @@ typedef struct {
...
@@ -375,6 +375,8 @@ typedef struct {
}
census_tag_set_create_status
;
}
census_tag_set_create_status
;
/* Create a new tag set, adding and removing tags from an existing tag set.
/* Create a new tag set, adding and removing tags from an existing tag set.
This will copy all tags from it's input parameters, so it is recommended
to add as many tags in a single operation as is practical for the client.
@param base Base tag set to build upon. Can be NULL.
@param base Base tag set to build upon. Can be NULL.
@param tags A set of tags to be added/changed/deleted. Tags with keys that
@param tags A set of tags to be added/changed/deleted. Tags with keys that
are in 'tags', but not 'base', are added to the tag set. Keys that are in
are in 'tags', but not 'base', are added to the tag set. Keys that are in
...
@@ -385,8 +387,10 @@ typedef struct {
...
@@ -385,8 +387,10 @@ typedef struct {
binary or non-binary tags, they will be ignored, as will deletions of
binary or non-binary tags, they will be ignored, as will deletions of
tags that don't exist.
tags that don't exist.
@param ntags number of tags in 'tags'
@param ntags number of tags in 'tags'
@param stats Information about the tag set created and actions taken during
@param status If not NULL, the pointed to structure will be filled in with
its creation.
information about the new tag set and status of the tags used in its
creation.
@return A new, valid census_tag_set.
*/
*/
census_tag_set
*
census_tag_set_create
(
const
census_tag_set
*
base
,
census_tag_set
*
census_tag_set_create
(
const
census_tag_set
*
base
,
const
census_tag
*
tags
,
int
ntags
,
const
census_tag
*
tags
,
int
ntags
,
...
@@ -396,7 +400,7 @@ census_tag_set *census_tag_set_create(const census_tag_set *base,
...
@@ -396,7 +400,7 @@ census_tag_set *census_tag_set_create(const census_tag_set *base,
has been called, the tag set cannot be reused. */
has been called, the tag set cannot be reused. */
void
census_tag_set_destroy
(
census_tag_set
*
tags
);
void
census_tag_set_destroy
(
census_tag_set
*
tags
);
/* Get the number of tags in the tag set. */
/* Get the
total
number of tags in the tag set. */
int
census_tag_set_ntags
(
const
census_tag_set
*
tags
);
int
census_tag_set_ntags
(
const
census_tag_set
*
tags
);
/* Structure used for tag set iteration. API clients should not use or
/* Structure used for tag set iteration. API clients should not use or
...
...
This diff is collapsed.
Click to expand it.
src/core/census/tag_set.c
+
2
−
1
View file @
8e5b21fd
...
@@ -56,7 +56,8 @@
...
@@ -56,7 +56,8 @@
// are to aid in efficient parsing and the ability to directly return key
// are to aid in efficient parsing and the ability to directly return key
// strings. This is more important than saving a single byte/tag on the wire.
// strings. This is more important than saving a single byte/tag on the wire.
// * The wire encoding uses only single byte values. This eliminates the need
// * The wire encoding uses only single byte values. This eliminates the need
// to handle endian-ness conversions.
// to handle endian-ness conversions. It also means there is a hard upper
// limit of 255 for both CENSUS_MAX_TAG_KV_LEN and CENSUS_MAX_PROPAGATED_TAGS.
// * Keep all tag information (keys/values/flags) in a single memory buffer,
// * Keep all tag information (keys/values/flags) in a single memory buffer,
// that can be directly copied to the wire. This makes iteration by index
// that can be directly copied to the wire. This makes iteration by index
// somewhat less efficient. If it becomes a problem, we could consider
// somewhat less efficient. If it becomes a problem, we could consider
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment