Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
Signed-off-by: avilevy <[email protected]>
  • Loading branch information
avilevy18 committed Nov 21, 2023
1 parent bb6e806 commit 71912c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/out_stackdriver/stackdriver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2776,16 +2776,15 @@ static void cb_stackdriver_flush(struct flb_event_chunk *event_chunk,
u_conn = flb_upstream_conn_get(ctx->u);
if (!u_conn) {
#ifdef FLB_HAVE_METRICS
flb_upstream_conn_release(u_conn);
cmt_counter_inc(ctx->cmt_failed_requests,
ts, 1, (char *[]) {name});

/* OLD api */
flb_metrics_sum(FLB_STACKDRIVER_FAILED_REQUESTS, 1, ctx->ins->metrics);

update_http_metrics(ctx, event_chunk, ts, STACKDRIVER_NET_ERROR);
update_retry_metric(ctx, event_chunk, ts, STACKDRIVER_NET_ERROR, FLB_RETRY);
#endif
flb_upstream_conn_release(u_conn);
FLB_OUTPUT_RETURN(FLB_RETRY);
}

Expand Down

0 comments on commit 71912c6

Please sign in to comment.