out_nats: register upstream with instance
@@ -62,6 +62,7 @@ static int cb_nats_init(struct flb_output_instance *ins, struct flb_config *conf
}
ctx->u = upstream;
ctx->ins = ins;
+ flb_output_upstream_set(ctx->u, ins);
flb_output_set_context(ins, ctx);
return 0;
