Skip to content

Commit

Permalink
Addressed comments
Browse files Browse the repository at this point in the history
Signed-off-by: avilevy <[email protected]>
  • Loading branch information
avilevy18 committed Nov 20, 2023
1 parent 4bf7174 commit b38ead0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions plugins/out_stackdriver/stackdriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2500,13 +2500,12 @@ static void add_record_metrics(struct flb_stackdriver* ctx,
{
char grpc_code_label[32];
char response_code_label[32];
char* name;
char* name = (char*) flb_output_name(ctx->ins);
/* convert status to string format */
snprintf(response_code_label, sizeof(response_code_label) - 1, "%i",
response_code);
/* convert grpc_code to string format */
snprintf(grpc_code_label, sizeof(grpc_code_label) - 1, "%i", grpc_code);
name = (char*) flb_output_name(ctx->ins);

/* processed records total */
cmt_counter_add(ctx->cmt_proc_records_total, ts, val, 3,
Expand Down
3 changes: 2 additions & 1 deletion plugins/out_stackdriver/stackdriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
#define FLB_STACKDRIVER_FAILED_REQUESTS 1001 /* failed requests */
#endif

#define GRPC_STATUS_CODES_SIZE 32
// https://grpc.github.io/grpc/core/md_doc_statuscodes.html
#define GRPC_STATUS_CODES_SIZE 17
#define PARTIAL_SUCCESS_GRPC_TYPE "type.googleapis.com/google.logging.v2.WriteLogEntriesPartialErrors"
#define PARTIAL_SUCCESS_GRPC_TYPE_SIZE 66

Expand Down

0 comments on commit b38ead0

Please sign in to comment.