Skip to content

Commit

Permalink
filter_rewrite_tag: don't use collector api
Browse files Browse the repository at this point in the history
Signed-off-by: Takahiro Yamashita <nokute78@gmail.com>
  • Loading branch information
nokute78 authored and edsiper committed Oct 27, 2021
1 parent 191f7fb commit a54334f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugins/filter_rewrite_tag/rewrite_tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
static int emitter_create(struct flb_rewrite_tag *ctx)
{
int ret;
int coll_fd;
struct flb_input_instance *ins;

ret = flb_input_name_exists(ctx->emitter_name, ctx->config);
Expand Down Expand Up @@ -81,12 +80,6 @@ static int emitter_create(struct flb_rewrite_tag *ctx)
return -1;
}

/* Retrieve the collector id registered on the in_emitter initialization */
coll_fd = in_emitter_get_collector_id(ins);

/* Initialize plugin collector (event callback) */
flb_input_collector_start(coll_fd, ins);

#ifdef FLB_HAVE_METRICS
/* Override Metrics title */
ret = flb_metrics_title(ctx->emitter_name, ins->metrics);
Expand Down

0 comments on commit a54334f

Please sign in to comment.